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

Method encode

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

Source from the content-addressed store, hash-verified

291 self.eps = eps
292
293 def encode(self, x):
294 x = (x - self.mean) / (self.std + self.eps)
295 return x
296
297 def decode(self, x, sample_idx=None):
298 if sample_idx is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected