Skip to content

Commit

Permalink
add domain assert
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanoved committed Jul 23, 2024
1 parent ffc5e5d commit 5ea40d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_adapt.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,5 @@ def test_if_adaptation_const():
b = argument(Tensor(numpy.float32, ("N",)))
cond = op18.equal(sq, b)
out = op18.if_(cond, then_branch=lambda: [sq], else_branch=lambda: [sq])
build({"b": b}, {"out": out[0]})
model = build({"b": b}, {"out": out[0]})
assert model.domain == "" or model.domain == "ai.onnx"

0 comments on commit 5ea40d0

Please sign in to comment.