monklof commented on pull request #6898:
URL: https://github.com/apache/incubator-tvm/pull/6898#issuecomment-728764439


   > I have a question. What do you mean "input's shape's second dim is 
unknown"? TVM is able to compile the kernel even though the dim is a sym var.
   
   Hi, this is the case  when I import static LSTM model from tensorflow with 
batch dim set to `relay.Any`, TVM fails to create schedule for dense op even 
after I add ShapeFunc for tanh.
   
   Crash Stack:
   
![image](https://user-images.githubusercontent.com/2393551/99363552-da517b80-28ef-11eb-9991-abf0316ac75e.png)
   
   It fails because the data's second dim is inferred to `Any`, so I make it 
work around by extract `in_dim` from const weight:
   
![image](https://user-images.githubusercontent.com/2393551/99363264-7d55c580-28ef-11eb-9401-96fa0bf2d224.png)
   
   


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


Reply via email to