MCPcopy
hub / github.com/lucas-maes/le-wm / detach_clone

Function detach_clone

jepa.py:8–9  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

6from torch import nn
7
8def detach_clone(v):
9 return v.detach().clone() if torch.is_tensor(v) else v
10
11class JEPA(nn.Module):
12

Callers 1

rolloutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected