Skip to content

Commit c558de8

Browse files
author
Wei
authored
Merge pull request #1120 from pytorch/fb-sync-khabinov
[fx_acc] Add acc_tracer support for torch.mm
2 parents 058a511 + d897a0a commit c558de8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/v1.1.0/._index.html

-4 KB
Binary file not shown.

py/torch_tensorrt/fx/tracer/acc_tracer/acc_ops.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,13 @@ def square_mapper(node: torch.fx.Node, _: nn.Module) -> torch.fx.Node:
739739
("mat2", "other"),
740740
],
741741
)
742+
@register_acc_op_mapping(
743+
op_and_target=("call_function", torch.mm),
744+
arg_replacement_tuples=[
745+
("input", "input"),
746+
("mat2", "other"),
747+
],
748+
)
742749
@register_acc_op_mapping(op_and_target=("call_function", torch.matmul))
743750
@register_acc_op
744751
def matmul(*, input, other):

0 commit comments

Comments
 (0)