MCPcopy
hub / github.com/TingsongYu/PyTorch_Tutorial / normalize_invert

Function normalize_invert

Code/utils/utils.py:141–144  ·  view source on GitHub ↗
(tensor, mean, std)

Source from the content-addressed store, hash-verified

139
140
141def normalize_invert(tensor, mean, std):
142 for t, m, s in zip(tensor, mean, std):
143 t.mul_(s).add_(m)
144 return tensor

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected