MCPcopy Create free account
hub / github.com/apple/ml-pointersect / AT

Method AT

cdslib/core/nn/modules/subspace.py:138–141  ·  view source on GitHub ↗
(self, y)

Source from the content-addressed store, hash-verified

136 return y, weight
137
138 def AT(self, y):
139 weight = self._get_weight()
140 x = F.linear(input=y, weight=weight.t(), bias=None)
141 return x, weight
142
143 def ATA(self, xr=None, xl=None):
144 # xl^T * A^T * A * xr

Callers 1

forwardMethod · 0.95

Calls 1

_get_weightMethod · 0.95

Tested by

no test coverage detected