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

Method __init__

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

Source from the content-addressed store, hash-verified

62
63class Batch2D(Batch):
64 def __init__(self, data_type):
65 super().__init__(data_type)
66 self._data = [
67 [
68 np.array([[1, 0, 2], [3, 1, 4]], dtype=self._data_type),
69 np.array([[5, 0, 6], [7, 0, 8]], dtype=self._data_type),
70 ],
71 [
72 np.array([[13, 23, 22], [23, 21, 14]], dtype=self._data_type),
73 np.array([[23, 3, 6], [7, 0, 20]], dtype=self._data_type),
74 ],
75 ]
76
77 def valid_axes(self):
78 return [None, (), 0, 1, (0, 1)]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected