Laurawly commented on a change in pull request #16151: [numpy] [tvm] operator floor_divide URL: https://github.com/apache/incubator-mxnet/pull/16151#discussion_r331259767
########## File path: tests/python/unittest/test_numpy_op.py ########## @@ -1958,6 +1961,46 @@ def get_grad_right(a1, a2): assert_almost_equal(x.grad.asnumpy(), x_grad, rtol=rtol, atol=atol) +@with_seed() +@use_np +def test_np_floor_divide(): + if _features.is_enabled("TVM_OP"): + class TestFloorDivide(HybridBlock): + def __init__(self): + super(TestFloorDivide, self).__init__() + + def hybrid_forward(self, F, x1, x2): + return F.np.floor_divide(x1, x2) + + types = ['float64', 'float32', 'int64', 'int32', 'int8', 'uint8'] Review comment: We can also add a `fp16` here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services