mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
use == instead of is for python 3.8
This commit is contained in:
parent
e70344e648
commit
505c1f30b5
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class QDQQuantizer(ONNXQuantizer):
|
|||
self.tensors_to_quantize.append(tensor_name)
|
||||
elif tensor_name in self.value_infos.keys():
|
||||
vi = self.value_infos[tensor_name]
|
||||
if vi.type.HasField('tensor_type') and vi.type.tensor_type.elem_type is TensorProto.FLOAT:
|
||||
if vi.type.HasField('tensor_type') and vi.type.tensor_type.elem_type == TensorProto.FLOAT:
|
||||
self.tensors_to_quantize.append(tensor_name)
|
||||
else:
|
||||
logging.warning(
|
||||
|
|
|
|||
Loading…
Reference in a new issue