Kacper-Pietkun commented on code in PR #21132:
URL: https://github.com/apache/incubator-mxnet/pull/21132#discussion_r954896598
##########
tests/python/unittest/test_operator.py:
##########
@@ -9414,6 +9414,24 @@ def test_elementwise_ops_on_misaligned_input():
mx.nd.waitall()
assert a[3].asscalar() == 4.0
+
[email protected]('dtype', ['float16', 'float32', 'float64'])
[email protected]('ndim', [1, 2, 3, 4, 5])
[email protected]('max_dim_size', [1, 2, 3, 4, 5])
+def test_broadcast_ops_on_input_with_the_same_shape(dtype, ndim, max_dim_size):
+ shape = list(rand_shape_nd(ndim, dim=max_dim_size))
+ shape_size = np.product(shape)
+ a = np.random.uniform(low=-100, high=100, size=5000)
Review Comment:
Changed size to use shape.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]