You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/04/23 23:30:29 UTC

[GitHub] [incubator-mxnet] MoisesHer commented on a change in pull request #18104: Include broadcast_add into fused operators

MoisesHer commented on a change in pull request #18104:
URL: https://github.com/apache/incubator-mxnet/pull/18104#discussion_r414190914



##########
File path: tests/python/gpu/test_fusion.py
##########
@@ -241,13 +241,31 @@ def check_leakyrelu_ops():
     print("Checking fusion of LeakyReLU:gelu")
     check_fused_symbol(mx.sym.LeakyReLU(a+b, act_type='gelu'), a=arr1, b=arr2)
 
+def check_broadcast_ops():
+    a = mx.sym.Variable('a')
+    b = mx.sym.Variable('b')
+    arr1 = mx.random.uniform(shape=(8,8,2,3))
+    arr2 = mx.random.uniform(shape=(1,1,1,3))

Review comment:
       Do you mean for arr1?




----------------------------------------------------------------
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:
users@infra.apache.org