jroesch commented on a change in pull request #5144: [Relay][VM] Memory planner 
(part 1)
URL: https://github.com/apache/incubator-tvm/pull/5144#discussion_r410419288
 
 

 ##########
 File path: python/tvm/relay/transform/memory_alloc.py
 ##########
 @@ -26,8 +26,13 @@
 from ... import DataType, register_func
 from .. import ty, expr
 from ..backend import compile_engine
+from ..op.memory import alloc_storage, alloc_tensor
 
 
+def alloc_tensor(storage, shape, dtype='float32', assert_shape=None):
+    offset = expr.const(0, dtype="int64")
 
 Review comment:
   We initially allocate 0, then we later change the offset to be non-zero. 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to