Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lucidrains/byol-pytorch
/ flatten
Function
flatten
byol_pytorch/byol_pytorch.py:17–18 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
15
return
def_val
if
val is None
else
val
16
17
def
flatten(t):
18
return
t.reshape(t.shape[0], -1)
19
20
def
singleton(cache_key):
21
def
inner_fn(fn):
Callers
1
_hook
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected