(arr: np.ndarray)
| 186 | |
| 187 | @staticmethod |
| 188 | def flatten(arr: np.ndarray) -> np.ndarray: |
| 189 | shape = arr.shape |
| 190 | # if len(shape) < 3: |
| 191 | # return arr.swapaxes(0, 1).reshape(shape[0] * shape[1]) |
| 192 | # else: |
| 193 | return arr.reshape(shape[0] * shape[1], *shape[2:]) |
| 194 | |
| 195 | def render(self): |
| 196 | assert self.full, '' |
no outgoing calls
no test coverage detected