masahi commented on issue #5243: [Frontend][TensorFlow]Improve TensorFlow 
Static Shape Tensor Array
URL: https://github.com/apache/incubator-tvm/pull/5243#issuecomment-610032209
 
 
   hmm I tried this:
   
   ```Py
   def _tensor_array_stack(prelude):
       def _impl(inputs, input_types):
           # print(prelude.mod)
           # TODO: how to get the fixed shape of static_tensor_array inputs[0]?
           shape = (2, 4)
           stack = prelude.get_var_static('tensor_array_stack', "float32", 
shape)
           stacked = stack(inputs[0])
   
           stacked_shape = (Any(), 2, 4)
           static_tensor_array_ops = StaticTensorArrayOps(prelude, "float32", 
stacked_shape)
           static_tensor_array_ops.register()
           get_tensor = prelude.get_var_static('tensor_get_data', "float32", 
stacked_shape)
           return get_tensor(stacked)
       return _impl
   ```
   But I'm still getting `AttributeError: 'Prelude' object has no attribute 
'tensor_get_data_float32_?_2_4'`.  Do I need a new prelude to register a new 
shape?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to