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

Method get_shape

dali/python/nvidia/dali/_tensor_formatting.py:70–72  ·  view source on GitHub ↗

Returns the shape as a tuple or list.

(self, obj: Any)

Source from the content-addressed store, hash-verified

68 ...
69
70 def get_shape(self, obj: Any) -> Union[tuple, list]:
71 """Returns the shape as a tuple or list."""
72 ...
73
74 def get_layout(self, obj: Any) -> Optional[str]:
75 """Returns the layout string, or None if not available."""

Callers 14

format_tensorFunction · 0.45
format_batchFunction · 0.45
PrefetchMethod · 0.45
SetupImplMethod · 0.45
SlicePermuteHelperFunction · 0.45
callMethod · 0.45
detection_lossFunction · 0.45
_compute_new_static_sizeFunction · 0.45
resize_to_rangeFunction · 0.45
__init__Method · 0.45
num_boxes_staticMethod · 0.45
setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected