(self)
| 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()) |
nothing calls this directly
no test coverage detected