title: ONNX Quantized Model Type Error: Type 'tensor(float16)'
body: <p>I converted onnx model from float32 to float16 by using this script.</p>
  <pre><code>from onnxruntime_tools import optimizer
  optimized_model = optimizer.optimize_model(&quot;model_fixed.onnx&quot;, model_type='bert_tf', num_heads=12, hidden_size=768, opt_level=99)
  optimized_model.use_dynamic_axes()
  optimized_model.convert_model_float32_to_float16()
  optimized_model.save_model_to_file(&quot;model_fixed_fp16.onnx&quot;)
  </code></pre>
  <p>But at the time of inference I am getting this error.</p>
  <pre><code>[ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from 
  ./model_fixed_fp16.onnx failed:This is an invalid model. 
  Type Error: Type 'tensor(float16)' of input parameter 
  (conv2d_1/convolution__24:0) of operator (Conv) in node (batch_normalization_1/FusedBatchNormV3_1:0_nchwc) is invalid
  </code></pre>
  <p>Also I changed the input dtype to float 16 by using this</p>
  <pre><code>pimage = np.array(np.expand_dims(pimage, axis=0), dtype=np.float16)
  </code></pre>
  <p>but still getting same error. What I have to do to resolve this?</p>