Skip to content

Commit

Permalink
[Relay to Onnx Conversion test] Fixed relay.var initialization (apach…
Browse files Browse the repository at this point in the history
…e#8322)

* Fixed issue in bias variable initialization by passing arg name (shape)
  • Loading branch information
schilkunda-amba authored and ylc committed Sep 29, 2021
1 parent 5a98a81 commit 8c25cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/contrib/test_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_bias_add():
bshape = (2,)
rtol = 1e-2 if dtype == "float16" else 1e-5
x = relay.var("x", shape=xshape, dtype=dtype)
bias = relay.var("bias", dtype=dtype)
bias = relay.var("bias", shape=bshape, dtype=dtype)
z = relay.nn.bias_add(x, bias)
func = relay.Function([x, bias], z)

Expand Down

0 comments on commit 8c25cfc

Please sign in to comment.