Skip to content

Commit 49a23e7

Browse files
author
Sara Adkins
authored
fix new quality errors (#1156)
1 parent 2c9035e commit 49a23e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/deepsparse/utils/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def verify_outputs(
101101
raise Exception(
102102
f"Output shapes don't match, {output.shape} != {gt_output.shape}"
103103
)
104-
if type(output) != type(gt_output):
104+
if type(output) is not type(gt_output):
105105
raise Exception(
106106
f"Output types don't match, {type(output)} != {type(gt_output)}"
107107
)

tests/deepsparse/pipelines/test_dynamic_batch_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
def compare(expected, actual):
38-
assert type(expected) == type(actual)
38+
assert type(expected) is type(actual)
3939

4040
if isinstance(expected, (list, float, numpy.ndarray)):
4141
expected_np = numpy.asarray(expected, dtype=float)

0 commit comments

Comments
 (0)