MCPcopy Create free account
hub / github.com/IRVLUTD/UnseenObjectsWithMeanShift / array_to_tensor

Function array_to_tensor

lib/utils/augmentation.py:19–32  ·  view source on GitHub ↗

Converts a numpy.ndarray (N x H x W x C) to a torch.FloatTensor of shape (N x C x H x W) OR converts a nump.ndarray (H x W x C) to a torch.FloatTensor of shape (C x H x W)

(array)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected