Skip to content

Conversation

@avik-pal
Copy link
Collaborator

@avik-pal avik-pal commented Nov 2, 2025

No description provided.

@avik-pal avik-pal requested a review from wsmoses November 2, 2025 19:48
)
],
(
SelectIfActive $x,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

select if active shouldn't be required here

however in this case I'm surprised that the hloidentityop part failed, since this is what it should do (it also supports the reverse mode tablegen so we should do that separately as well)

Copy link
Collaborator Author

@avik-pal avik-pal Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove

this doesn't fix the batched ad issue, i am just moving the reverse mode cpp version to tablegen

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah all that readonlyidentityop does is say that for forward mode, redo the op with corresponding shadow indices [which should be equivalent to this here]

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnzymeJAX Benchmarks

Benchmark suite Current: b7ae6d3 Previous: 5c0b45a Ratio
scatter_sum / JaX / cpu / Primal 0.0000043282088998239484 s 0.000004331737999746111 s 1.00
scatter_sum / JaXPipe / cpu / Primal 0.000004300268000224605 s 0.000003905613000097219 s 1.10
scatter_sum / JaX / tpu / Primal 0.0001375585123998 s 0.0001482329919002 s 0.93
scatter_sum / JaXPipe / tpu / Primal 0.0001402481363002 s 0.0001482432529999 s 0.95

This comment was automatically generated by workflow using github-action-benchmark.

)
],
(
BroadcastInDim (ResultTypeWithBatch), (Shadow $x), (getBroadcastDimensionsWithBatch)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cam you explicitly add batch tests? In principle the tablegen interface should automatically do batching on top of so we should check it doesn't accidentally conflict

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.

3 participants