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

Method test_save_fails

exir/program/test/test_program.py:926–932  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

924 self.assertEqual(addmm_count, 0)
925
926 def test_save_fails(self):
927 model = TestLinear()
928 program = torch.export.export(model, model._get_random_inputs(), strict=True)
929 edge = to_edge(program)
930 et = edge.to_executorch()
931 with self.assertRaises(ValueError):
932 _ = et.save("/tmp/test_save.pt")
933
934 def test__transform_override_verifiers(self):
935 """Test that _transform can override verifiers in the exported program."""

Callers

nothing calls this directly

Calls 6

_get_random_inputsMethod · 0.95
to_edgeFunction · 0.90
TestLinearClass · 0.70
exportMethod · 0.45
to_executorchMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected