MCPcopy
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
17def flatten(t):
18 return t.reshape(t.shape[0], -1)
19
20def singleton(cache_key):
21 def inner_fn(fn):

Callers 1

_hookMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected