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

Method get_layout

dali/python/nvidia/dali/_tensor_formatting.py:74–76  ·  view source on GitHub ↗

Returns the layout string, or None if not available.

(self, obj: Any)

Source from the content-addressed store, hash-verified

72 ...
73
74 def get_layout(self, obj: Any) -> Optional[str]:
75 """Returns the layout string, or None if not available."""
76 ...
77
78 def to_cpu(self, obj: Any) -> Any:
79 """Transfers object to CPU if needed, returns CPU version."""

Callers 2

format_tensorFunction · 0.45
format_batchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected