haojin2 commented on a change in pull request #10679: [MXNET-347] Logical 
Operators AND, XOR, OR
URL: https://github.com/apache/incubator-mxnet/pull/10679#discussion_r184208948
 
 

 ##########
 File path: tests/python/unittest/test_operator.py
 ##########
 @@ -1581,6 +1581,27 @@ def test_bmin(a, b):
         data = gen_broadcast_data(idx=200)
         check_bmaxmin_gradient(c, data[0], data[1], 0.001, 1e-2, 1e-3)
 
+    def test_band(a, b):
+        c = mx.sym.broadcast_logical_and(a, b)
+        check_binary_op_forward(c, lambda x, y: np.logical_and(x, y), 
gen_broadcast_data, mx_nd_func=mx.nd.broadcast_logical_and)
 
 Review comment:
   The broadcast_xxx function actually wraps the other function which is the 
elemwise_xxx. If we do want an interface for user to call logical_xxx without 
the "broadcast_", we can do it in Python front end just like how 
add/subtract/multiply/divide is implemented.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to