MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / forward

Method forward

tok/utils.py:11–12  ·  view source on GitHub ↗
(self, inp)

Source from the content-addressed store, hash-verified

9 self.register_buffer('scale', torch.Tensor(std)[None, :, None, None])
10
11 def forward(self, inp):
12 return (inp - self.shift) / self.scale
13
14 def inv(self, inp):
15 return inp * self.scale + self.shift

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected