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 7b462dd commit 54f4e3cCopy full SHA for 54f4e3c
examples/onnx_ptq/image_prep.py
@@ -50,6 +50,8 @@ def main():
50
calib_tensor.append(transforms(image))
51
52
calib_tensor = np.stack(calib_tensor, axis=0)
53
+ if args.fp16:
54
+ calib_tensor = calib_tensor.astype(np.float16) # type: ignore[attr-defined]
55
np.save(args.output_path, calib_tensor)
56
57
0 commit comments