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

Function check_layout

dali/test/python/operator_2/test_reduce.py:126–130  ·  view source on GitHub ↗
(tensor, in_layout, axes, keep_dims)

Source from the content-addressed store, hash-verified

124
125
126def check_layout(tensor, in_layout, axes, keep_dims):
127 expected_layout = get_expected_layout(in_layout, axes, keep_dims)
128 assert (
129 tensor.layout() == expected_layout
130 ), f"Layout mismatch. Got: `{tensor.layout()}`, expected `{expected_layout}` (axes: {axes})"
131
132
133def run_dali(

Callers 4

run_daliFunction · 0.70
_test_reduce_large_dataFunction · 0.70
_test_reduce_empty_dataFunction · 0.70
_test_std_dev_large_dataFunction · 0.70

Calls 2

get_expected_layoutFunction · 0.85
layoutMethod · 0.45

Tested by

no test coverage detected