MCPcopy Create free account
hub / github.com/apple/axlearn / test_context

Method test_context

axlearn/common/module_test.py:896–899  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

894 yield context
895
896 def test_context(self):
897 # Running outside of context should error.
898 with self.assertRaisesRegex(ValueError, "Expected current_context()"):
899 self._invoke(num_iters=3, xs={})
900
901 def test_basic(self):
902 num_iters = 3

Callers

nothing calls this directly

Calls 1

_invokeMethod · 0.95

Tested by

no test coverage detected