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

Method __init__

dali/test/python/operator_2/test_reduce.py:82–93  ·  view source on GitHub ↗
(self, data_type)

Source from the content-addressed store, hash-verified

80
81class Batch3D(Batch):
82 def __init__(self, data_type):
83 super().__init__(data_type)
84 self._data = [
85 [
86 np.array([[[1, 0, 1], [2, 3, 1]], [[0, 4, 1], [0, 4, 1]]], dtype=self._data_type),
87 np.array([[[5, 0, 1], [6, 7, 1]], [[0, 8, 1], [0, 4, 1]]], dtype=self._data_type),
88 ],
89 [
90 np.array([[[9, 0, 3], [3, 3, 3]], [[7, 0, 3], [0, 6, 8]]], dtype=self._data_type),
91 np.array([[[7, 2, 3], [7, 8, 2]], [[3, 9, 2], [2, 6, 2]]], dtype=self._data_type),
92 ],
93 ]
94
95 def valid_axes(self):
96 return [None, (), 0, 1, 2, (0, 1), (0, 2), (1, 2), (0, 1, 2)]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected