MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Method __init__

intermediate_source/parametrizations.py:224–226  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

222# orthogonal weights
223class CayleyMap(nn.Module):
224 def __init__(self, n):
225 super().__init__()
226 self.register_buffer("Id", torch.eye(n))
227
228 def forward(self, X):
229 # (I + X)(I - X)^{-1}

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected