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

Method __init__

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

Source from the content-addressed store, hash-verified

44
45class Batch1D(Batch):
46 def __init__(self, data_type):
47 super().__init__(data_type)
48 self._data = [
49 [
50 np.array([1, 2, 3, 4], dtype=self._data_type),
51 np.array([33, 2, 10, 10], dtype=self._data_type),
52 ],
53 [
54 np.array([10, 20, 30, 20], dtype=self._data_type),
55 np.array([33, 2, 15, 19], dtype=self._data_type),
56 ],
57 ]
58
59 def valid_axes(self):
60 return [None, (), 0]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected