MCPcopy Create free account
hub / github.com/apple/ARKitScenes / AsContiguousArray

Class AsContiguousArray

depth_upsampling/transfroms/ascontiguousarray.py:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class AsContiguousArray:
5 def __init__(self):
6 super().__init__()
7
8 def __call__(self, sample):
9 for key in sample:
10 if isinstance(sample[key], np.ndarray):
11 sample[key] = np.ascontiguousarray(sample[key])
12 return sample

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected