Skip to content

Commit

Permalink
fix new quality errors (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins authored Jul 31, 2023
1 parent 2c9035e commit 49a23e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deepsparse/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def verify_outputs(
raise Exception(
f"Output shapes don't match, {output.shape} != {gt_output.shape}"
)
if type(output) != type(gt_output):
if type(output) is not type(gt_output):
raise Exception(
f"Output types don't match, {type(output)} != {type(gt_output)}"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/deepsparse/pipelines/test_dynamic_batch_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


def compare(expected, actual):
assert type(expected) == type(actual)
assert type(expected) is type(actual)

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

0 comments on commit 49a23e7

Please sign in to comment.