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

Function layout_str

dali/test/python/operator_2/test_resize.py:90–93  ·  view source on GitHub ↗
(dim, channel_first)

Source from the content-addressed store, hash-verified

88
89
90def layout_str(dim, channel_first):
91 s = "DHW" if dim == 3 else "HW"
92 s = "C" + s if channel_first else s + "C"
93 return s
94
95
96def resize2D_PIL(input, size, roi_start, roi_end, dtype, channel_first, resample):

Callers 2

build_pipesFunction · 0.85
_test_NDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected