MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / normalize

Method normalize

roboverse_learn/il/utils/normalizer.py:75–76  ·  view source on GitHub ↗
(self, x: Union[Dict, torch.Tensor, np.ndarray])

Source from the content-addressed store, hash-verified

73 return _normalize(x, params, forward=forward)
74
75 def normalize(self, x: Union[Dict, torch.Tensor, np.ndarray]) -> torch.Tensor:
76 return self._normalize_impl(x, forward=True)
77
78 def unnormalize(self, x: Union[Dict, torch.Tensor, np.ndarray]) -> torch.Tensor:
79 return self._normalize_impl(x, forward=False)

Callers 15

__call__Method · 0.95
get_output_statsMethod · 0.95
testFunction · 0.95
compute_lossMethod · 0.45
predict_actionMethod · 0.45
compute_contrastive_lossFunction · 0.45
predict_actionMethod · 0.45
compute_lossMethod · 0.45
predict_actionMethod · 0.45
compute_lossMethod · 0.45
predict_actionMethod · 0.45
compute_lossMethod · 0.45

Calls 1

_normalize_implMethod · 0.95

Tested by

no test coverage detected