(self, data_type)
| 44 | |
| 45 | class 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] |