Skip to content

Commit

Permalink
Use assertIsNot() instead of assertTrue(a is not None)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlizarraga committed Jan 30, 2024
1 parent 2f17f18 commit df5bc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/test/python/quantization/test_qdq.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def verify_qdq(self, per_channel, activation_type, weight_type, extra_options=No
if extra_options and extra_options.get("UseQDQContribOps", False):
qdq_model = onnx.load_model(model_qdq_path)
ms_opset = next((opset for opset in qdq_model.opset_import if opset.domain == "com.microsoft"), None)
self.assertTrue(ms_opset is not None)
self.assertIsNot(ms_opset, None)

def verify_qop(self, per_channel, is_quant_type_int8):
np.random.seed(1)
Expand Down

0 comments on commit df5bc55

Please sign in to comment.