Skip to content

Commit

Permalink
fix conv2d grad test
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Feb 7, 2022
1 parent 23ed607 commit 81089a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/python/relay/test_op_grad_level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ def verify_conv2d_grad(dshape, wshape, strides, padding, dilation, groups=1, mod
data = relay.var("data", shape=dshape, dtype=dtype)
weight = relay.var("weight", shape=wshape, dtype=dtype)
conv = relay.nn.conv2d(
data, weight, strides=strides, padding=padding, dilation=dilation, groups=groups
data,
weight,
strides=strides,
padding=padding,
dilation=dilation,
groups=groups,
out_dtype=dtype,
)
fwd_func = relay.Function([data, weight], conv)
check_grad(fwd_func, mode=mode)
Expand Down

0 comments on commit 81089a9

Please sign in to comment.