()
| 562 | concatenated_shape[axis] = sum(tensor.shape[axis] for tensor in lazy_tensors) |
| 563 | |
| 564 | def load() -> UnquantizedTensor: |
| 565 | ndarrays = [load_unquantized(tensor) for tensor in lazy_tensors] |
| 566 | concatenated: NDArray = np.concatenate(ndarrays, axis=axis) |
| 567 | return UnquantizedTensor(concatenated) |
| 568 | description = 'concatenated[[' + '] | ['.join(lt.description for lt in lazy_tensors) + ']]' |
| 569 | return LazyTensor(load, concatenated_shape, lazy_tensors[0].data_type, description) |
| 570 | return {name: convert(name) for name in names} |
nothing calls this directly
no test coverage detected