MCPcopy Create free account
hub / github.com/Anoise/WTFlib / encode

Method encode

LDPS_Graph/layers/utils.py:332–337  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

330 self.b = -self.a*mymax + high
331
332 def encode(self, x):
333 s = x.size()
334 x = x.view(s[0], -1)
335 x = self.a*x + self.b
336 x = x.view(s)
337 return x
338
339 def decode(self, x):
340 s = x.size()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected