MCPcopy Create free account
hub / github.com/pytorch/executorch / test_print_operator_names

Method test_print_operator_names

runtime/test/test_runtime.py:48–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.assertTrue(torch.allclose(outputs[0], inputs[0] + inputs[1] + 1))
47
48 def test_print_operator_names(self):
49 ep, inputs = create_program(ModuleAdd())
50 runtime = Runtime.get()
51
52 operator_names = runtime.operator_registry.operator_names
53 self.assertGreater(len(operator_names), 0)
54
55 self.assertIn("aten::add.out", operator_names)
56
57 def test_load_program_with_path(self):
58 ep, inputs = create_program(ModuleAdd())

Callers

nothing calls this directly

Calls 3

create_programFunction · 0.90
ModuleAddClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected