MCPcopy Create free account
hub / github.com/pytorch/pytorch / nop

Method nop

test/test_proxy_tensor.py:692–693  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

690 return x.t() + val.t()
691
692 def nop(x):
693 return x.cos()
694
695 traced = make_fx(f, decomposition_table={torch.ops.aten.t.default: nop})(torch.randn(5))
696 self.assertEqual(len([n for n in traced.graph.nodes if n.target == torch.ops.aten.t.default]), 0)

Callers

nothing calls this directly

Calls 1

cosMethod · 0.45

Tested by

no test coverage detected