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

Function _new_module

axlearn/common/module_test.py:93–94  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

91
92
93def _new_module(name: str) -> _Module:
94 return _Module.default_config().set(name=name).instantiate(parent=None)
95
96
97class InvocationContextTest(test_utils.TestCase):

Callers 8

test_set_state_updateMethod · 0.85
test_context_stackMethod · 0.85
test_nested_contextMethod · 0.85
test_none_prng_keyMethod · 0.85
_dummy_contextMethod · 0.85

Calls 3

instantiateMethod · 0.45
setMethod · 0.45
default_configMethod · 0.45

Tested by

no test coverage detected