Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed Oct 8, 2019
1 parent 55a3946 commit ebb9288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/python/unittest/test_contrib_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import itertools
from numpy.testing import assert_allclose, assert_array_equal
from mxnet.test_utils import *
from common import with_seed
from common import with_seed, assert_raises_cudnn_not_satisfied
import unittest

def test_box_nms_op():
Expand Down Expand Up @@ -335,6 +335,7 @@ def test_multibox_prior_op():
assert_allclose(boxes.asnumpy()[250, 250, 0, :], np.array([-0.948249, 0.362671, 1.636436, 0.530377]), atol=1e-5, rtol=1e-5)

@with_seed()
@assert_raises_cudnn_not_satisfied(min_version='5.1.10')
def test_modulated_deformable_convolution():
for num_batch in [1, 2]:
for num_channel_data, num_deformable_group in itertools.product([4, 8], [1, 2]):
Expand Down Expand Up @@ -369,9 +370,8 @@ def test_modulated_deformable_convolution():
else:
rtol, atol = 0.05, 1e-3
# By now we only have gpu implementation
if default_context().device_type == 'gpu':
check_numeric_gradient(op, [im_data, offset_data, mask_data, weight, bias], rtol=rtol, atol=atol,
grad_nodes=grad_nodes, ctx=mx.gpu(0))
check_numeric_gradient(op, [im_data, offset_data, mask_data, weight, bias], rtol=rtol, atol=atol,
grad_nodes=grad_nodes, ctx=mx.gpu(0))


if __name__ == '__main__':
Expand Down

0 comments on commit ebb9288

Please sign in to comment.