(self, x: np.ndarray)
| 809 | return result.type(dtype) |
| 810 | |
| 811 | def transform_to_tl1(self, x: np.ndarray): |
| 812 | scale = np.max(np.abs(x)) |
| 813 | # res = np.round(x / scale + 2).astype(np.uint8) |
| 814 | res = preprocess_weights_tl1(x) |
| 815 | return res, scale |
| 816 | |
| 817 | def transform_to_tl2(self, x: np.ndarray): |
| 818 | scale = np.max(np.abs(x)) |
no test coverage detected