Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HazyResearch/spacetime
/ __init__
Method
__init__
model/components.py:14–15 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
12
13
class
OurModule(nn.Module):
14
def
__init__(self):
15
super().__init__()
16
17
def
register(self, name, tensor, trainable=False, lr=None, wd=None):
18
""
"Utility method: register a tensor as a buffer or trainable parameter"
""
Callers
1
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected