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

Method decode

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

Source from the content-addressed store, hash-verified

337 return x
338
339 def decode(self, x):
340 s = x.size()
341 x = x.view(s[0], -1)
342 x = (x - self.b)/self.a
343 x = x.view(s)
344 return x
345
346class LpLoss(object):
347 def __init__(self, d=2, p=2, size_average=True, reduction=True):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected