tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] masahi commented on issue #5243: [Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor Array
Date Mon, 06 Apr 2020 20:22:25 GMT
masahi commented on issue #5243: [Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor
Array
URL: https://github.com/apache/incubator-tvm/pull/5243#issuecomment-610016636
 
 
   > @masahi You can use [tensor_get_data](https://github.com/apache/incubator-tvm/blob/master/python/tvm/relay/prelude.py#L515)
to achieve this
   
   Ah thanks. I tried to use it on the output of stack, but since the first axis is 'Any',
I don't know how to pass `shape` param in `get_var_static('tensor_get_data', "float32", shape)`.
How do I do it?
   
   A better question might be, why do we need to pass `shape` all over the place? I'd imagine,
intuitively stack and other ops that operate on already existing tensor array should be able
to figure out the shape, no?

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


With regards,
Apache Git Services

Mime
View raw message