Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ to_numpy
Method
to_numpy
dali/python/nvidia/dali/_tensor_formatting.py:152–153 ·
view source on GitHub ↗
(self, obj)
Source
from the content-addressed store, hash-verified
150
""
"Adapter for TensorCPU/TensorGPU. Implements TensorAdapter protocol."
""
151
152
def
to_numpy(self, obj):
153
return
np.array(self.to_cpu(obj))
154
155
156
class
PipelineBatchAdapter(_BasePipelineAdapter):
Callers
1
format_tensor
Function · 0.95
Calls
1
to_cpu
Method · 0.45
Tested by
no test coverage detected