(self, x: np.ndarray)
| 815 | return res, scale |
| 816 | |
| 817 | def transform_to_tl2(self, x: np.ndarray): |
| 818 | scale = np.max(np.abs(x)) |
| 819 | # res = np.round(x / scale + 2).astype(np.uint8) |
| 820 | res = preprocess_weights_tl2(x) |
| 821 | return res, scale |
| 822 | |
| 823 | # generate dummy model |
| 824 | def generate_tensors(self) -> Iterator[tuple[str, np.ndarray]]: |
no test coverage detected