MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / decode

Method decode

layers/utils.py:365–370  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

363 return x
364
365 def decode(self, x):
366 s = x.size()
367 x = x.view(s[0], -1)
368 x = (x - self.b)/self.a
369 x = x.view(s)
370 return x
371
372class LpLoss(object):
373 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