We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc5b84 commit 1d31093Copy full SHA for 1d31093
python/t_mac/model_utils.py
@@ -246,4 +246,4 @@ def preprocess_for_t_mac(
246
raise KeyError("GEMM of shape ({}, {}) is not found in {}. Please compile the kernels using T-MAC first.".format(M, K, kcfg_file))
247
248
w, scales = preprocess_weights(w, scales, zeros, bits=bits, g=g, bm=bm, kfactor=kfactor, simd_n_in=simd_n_in, simd_n_out=simd_n_out)
249
- return np.concatenate([w.flatten(), scales.astype(np.float32).view(np.uint8).flatten()])
+ return np.concatenate([w.flatten(), scales.astype(np.float32).copy().view(np.uint8).flatten()])
0 commit comments