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

[GitHub] [incubator-tvm] notoraptor commented on a change in pull request #5331: [relay][topi] Add operation relay.nn.dilate() which calls topi.nn.dilate()

notoraptor commented on a change in pull request #5331:
URL: https://github.com/apache/incubator-tvm/pull/5331#discussion_r413952517



##########
File path: python/tvm/relay/op/nn/_nn.py
##########
@@ -458,6 +458,15 @@ def compute_cross_entropy(attrs, inputs, out_dtype):
 reg.register_pattern("nn.cross_entropy", OpPattern.OPAQUE)
 
 
+# dilate
+@reg.register_compute("nn.dilate")
+def compute_dilate(attrs, inputs, out_dtype):
+    return [topi.nn.dilate(inputs[0], attrs.strides)]
+
+reg.register_broadcast_schedule("nn.dilate")
+reg.register_pattern("nn.dilate", OpPattern.OPAQUE)

Review comment:
       @kazum Done!




----------------------------------------------------------------
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