Skip to content

[QwixOpId] Improve op_id generation for Linen and NNX modules.#200

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_861439666
Jan 27, 2026
Merged

[QwixOpId] Improve op_id generation for Linen and NNX modules.#200
copybara-service[bot] merged 1 commit intomainfrom
test_861439666

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Jan 27, 2026

[QwixOpId] Improve op_id generation for Linen and NNX modules.

Update the _get_op_id function to use module.scope as the tracking key for Linen and the module as tracing key for NNX(same as before). This ensures unique op IDs are generated even when module instances are shared or reused within a model, preventing conflicts in aux_data tracking.

@copybara-service copybara-service Bot force-pushed the test_861439666 branch 4 times, most recently from 11f9f08 to c735080 Compare January 27, 2026 19:17
@copybara-service copybara-service Bot changed the title [QwixOpId] Improve op ID generation for Linen and NNX modules. [QwixOpId] Improve op_id generation for Linen and NNX modules. Jan 27, 2026
Update the `_get_op_id` function to use `module.scope` as the tracking key for Linen and the `module` as tracing key for NNX(same as before). This ensures unique op IDs are generated even when module instances are shared or reused within a model, preventing conflicts in `aux_data` tracking.

PiperOrigin-RevId: 861808171
@copybara-service copybara-service Bot merged commit dc770ab into main Jan 27, 2026
@copybara-service copybara-service Bot deleted the test_861439666 branch January 27, 2026 19:18
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