MCPcopy Create free account
hub / github.com/imrahulr/hat / __call__

Method __call__

core/utils/utils.py:162–163  ·  view source on GitHub ↗
(self, sample)

Source from the content-addressed store, hash-verified

160 Transforms a numpy.ndarray to torch.Tensor.
161 """
162 def __call__(self, sample):
163 return torch.from_numpy(sample)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected