MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / __call__

Method __call__

transforms/transforms.py:64–67  ·  view source on GitHub ↗
(self, tensor)

Source from the content-addressed store, hash-verified

62 self.std = std
63
64 def __call__(self, tensor):
65 for t, m, s in zip(tensor, self.mean, self.std):
66 t.mul_(s).add_(m)
67 return tensor
68
69
70class MaskToTensor(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected