Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Ananya <[email protected]>
  • Loading branch information
ananyamukh6 committed Sep 3, 2023
1 parent 0880593 commit 2524024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions onnxoptimizer/test/optimizer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4615,14 +4615,13 @@ def test_rewrite_where(self):
""")

optimized_model = self._optimized(
model,["rewrite_where"], True)
model, ["rewrite_where"], True)

assert len(optimized_model.graph.node) == 5
assert set([i.op_type for i in optimized_model.graph.node]) == {'Where', 'And', 'Sign'}
assert optimized_model.graph.node[0].input == ['A', 'Y', 'X']
assert optimized_model.graph.node[3].input == ['M', 'X', 'Y']



if __name__ == "__main__":
unittest.main()

0 comments on commit 2524024

Please sign in to comment.