MCPcopy Create free account
hub / github.com/NVIDIA/DALI / to_cpu

Method to_cpu

dali/python/nvidia/dali/_tensor_formatting.py:78–80  ·  view source on GitHub ↗

Transfers object to CPU if needed, returns CPU version.

(self, obj: Any)

Source from the content-addressed store, hash-verified

76 ...
77
78 def to_cpu(self, obj: Any) -> Any:
79 """Transfers object to CPU if needed, returns CPU version."""
80 ...
81
82 def to_numpy(self, obj: Any) -> Any:
83 """Converts object to numpy array."""

Callers 5

to_numpyMethod · 0.45
to_numpyMethod · 0.45
to_numpyMethod · 0.45
to_numpyMethod · 0.45
format_batchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected