Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
93
def
_new_module(name: str) -> _Module:
94
return
_Module.default_config().set(name=name).instantiate(parent=None)
95
96
97
class
InvocationContextTest(test_utils.TestCase):
Callers
8
test_set_state_update
Method · 0.85
test_context_output_collection
Method · 0.85
test_context_stack
Method · 0.85
test_nested_context
Method · 0.85
test_context_stack_mutlithread
Method · 0.85
test_none_prng_key
Method · 0.85
test_add_summary_validation
Method · 0.85
_dummy_context
Method · 0.85
Calls
3
instantiate
Method · 0.45
set
Method · 0.45
default_config
Method · 0.45
Tested by
no test coverage detected