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

Method test_cannot_assign_attr

exir/tests/test_delegate.py:125–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 )
124
125 def test_cannot_assign_attr(self) -> None:
126 deleg = LoweredBackendModule(None, "", b"", []) # pyre-ignore
127 with self.assertRaises(AttributeError):
128 deleg.backend_id = "123" # pyre-ignore
129
130 def test_create_submodule_single_return(self) -> None:
131 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected