Lunderberg commented on a change in pull request #10712:
URL: https://github.com/apache/tvm/pull/10712#discussion_r833328440
##########
File path: python/tvm/runtime/ndarray.py
##########
@@ -249,6 +249,20 @@ def copyto(self, target):
return self._copyto(res)
raise ValueError("Unsupported target type %s" % str(type(target)))
+ def create_view(self, shape):
+ shape_imm = []
Review comment:
Thank you, and that cleans it up quite a bit. I had been using the same
calling convention as `TVMArrayAllocWithScope`, called from
`tvm.runtime.ndarray.empty`, which predates `ShapeTuple`.
--
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]