Skip to content

Commit

Permalink
Update onnxscript/rewriter/generic_pattern_test.py
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Chu <[email protected]>
  • Loading branch information
gramalingam and justinchuby authored Jul 16, 2024
1 parent d80c578 commit 8f5878e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onnxscript/rewriter/generic_pattern_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,8 @@ def apply_pattern(op, x, **_):
model = onnx.shape_inference.infer_shapes(model_proto)
ir_model = ir.serde.deserialize_model(model)
rule.apply_to_model(ir_model)
rewritten_model = ir.serde.serialize_model(ir_model)
graph = rewritten_model.graph
self.assertEqual(len(graph.node), 3)
graph = ir_model.graph
self.assertEqual(len(graph), 3)
self.assertEqual(graph.node[0].op_type, "SinCos")

def test_rotary_embedding(self):
Expand Down

0 comments on commit 8f5878e

Please sign in to comment.