File size: 187 Bytes
6c33256
 
 
 
 
 
1
2
3
4
5
6
import onnx
from onnxconverter_common import float16

model = onnx.load("fr_base.onnx")
model_fp16 = float16.convert_float_to_float16(model)
onnx.save(model_fp16, "fr_base_f16.onnx")