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

Method right_inverse

intermediate_source/parametrizations.py:279–282  ·  view source on GitHub ↗
(self, A)

Source from the content-addressed store, hash-verified

277 return A - A.transpose(-1, -2)
278
279 def right_inverse(self, A):
280 # We assume that A is skew-symmetric
281 # We take the upper-triangular elements, as these are those used in the forward
282 return A.triu(1)
283
284###############################################################################
285# We may now initialize a layer that is parametrized with ``Skew``

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected