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/07/12 16:45:09 UTC

[GitHub] [incubator-tvm] zhiics commented on a change in pull request #6007: [RELAY][DYN] Dynamic broadcast_to, zeros, ones

zhiics commented on a change in pull request #6007:
URL: https://github.com/apache/incubator-tvm/pull/6007#discussion_r453337804



##########
File path: python/tvm/relay/op/_tensor.py
##########
@@ -92,7 +92,7 @@
 # zeros
 @register_compute("zeros")
 def zeros_compute(attrs, inputs, output_type):
-    assert len(inputs) == 1
+    assert len(inputs) == 0

Review comment:
       assert not inputs?

##########
File path: python/tvm/relay/op/_tensor.py
##########
@@ -109,7 +109,7 @@ def zeros_like_compute(attrs, inputs, output_type):
 # ones
 @register_compute("ones")
 def ones_compute(attrs, inputs, output_type):
-    assert len(inputs) == 1
+    assert len(inputs) == 0

Review comment:
       assert not inputs?




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