Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchax/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def _aten_dist(input, other, p=2):


@op(torch.ops.aten.bmm)
def _aten_bmm(x, y):
def _aten_bmm(x, y, out=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add an assertion to ensure the out is indeed None?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, there is a helper class OutVariant (and a mapping _out_variant_to_functional), not sure if it can solve your problem.

res = x @ y
return res
# return jnp.einsum('bnm,bmk->bnk', x, y)
Expand Down
Loading