(self, data_type)
| 62 | |
| 63 | class 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)] |