Skip to content

Fix JaxRuntimeError during profiler stop_trace array verification#205

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_888268746
Open

Fix JaxRuntimeError during profiler stop_trace array verification#205
copybara-service[bot] wants to merge 1 commit intomainfrom
test_888268746

Conversation

@copybara-service
Copy link
Copy Markdown

Fix JaxRuntimeError during profiler stop_trace array verification

When executing a profiler request with Xprof Trace Options, the IFRT proxy outputs a single JAX shaped array. Previously, the Python profiler expected 0 outputs, causing a JaxRuntimeError (Mismatch between out_handlers and num_results: 0 vs 1).

This CL updates the profiler state implementation to correctly expect (1,) output from PluginExecutable.call() when stopping a trace with Xprof options, consuming the URL suffix parameter and fixing the crash.

@copybara-service copybara-service bot force-pushed the test_888268746 branch 2 times, most recently from 58b1aae to d863c9d Compare March 27, 2026 04:45
When executing a profiler request with Xprof Trace Options, the IFRT proxy outputs a single JAX shaped array. Previously, the Python profiler expected 0 outputs, causing a JaxRuntimeError (`Mismatch between out_handlers and num_results: 0 vs 1`).

This CL updates the profiler state implementation to correctly expect `(1,)` output from `PluginExecutable.call()` when stopping a trace with Xprof options, consuming the URL suffix parameter and fixing the crash.

PiperOrigin-RevId: 888268746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant