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

Method get_device

dali/python/nvidia/dali/_tensor_formatting.py:62–64  ·  view source on GitHub ↗

Returns device string like 'CPU' or 'GPU'.

(self, obj: Any)

Source from the content-addressed store, hash-verified

60 ...
61
62 def get_device(self, obj: Any) -> str:
63 """Returns device string like 'CPU' or 'GPU'."""
64 ...
65
66 def get_dtype(self, obj: Any) -> Any:
67 """Returns the data type."""

Callers 3

format_tensorFunction · 0.45
format_batchFunction · 0.45
build_dataloaderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected