MCPcopy Create free account
hub / github.com/kwuking/TimeMixer / forward

Method forward

layers/StandardNorm.py:20–28  ·  view source on GitHub ↗
(self, x, mode: str)

Source from the content-addressed store, hash-verified

18 self._init_params()
19
20 def forward(self, x, mode: str):
21 if mode == 'norm':
22 self._get_statistics(x)
23 x = self._normalize(x)
24 elif mode == 'denorm':
25 x = self._denormalize(x)
26 else:
27 raise NotImplementedError
28 return x
29
30 def _init_params(self):
31 # initialize RevIN params: (C,)

Callers

nothing calls this directly

Calls 3

_get_statisticsMethod · 0.95
_normalizeMethod · 0.95
_denormalizeMethod · 0.95

Tested by

no test coverage detected