XG-zheng commented on PR #14160:
URL: https://github.com/apache/tvm/pull/14160#issuecomment-1450543442

   Due to the old version(2.1.3) of paddle in ci-gpu docker,  mish and tile may 
have compatibility problems.
   
   1.  Mish is a new api of paddle 2.3
   2. Tensor type conversion error in layer.
   ```python
   class Tile5(nn.Layer):
       @paddle.jit.to_static
       def forward(self, inputs):
           reps = paddle.to_tensor([3, 2])
           return paddle.tile(inputs, repeat_times=reps)
   
   verify_model(Tile6(), input_data=input_data)
   input_shapes = [[10], [2, 3], [5, 10, 11], [3, 4, 5, 6]]
   for input_shape in input_shapes:
           input_data = paddle.randn(shape=input_shape, dtype="float32")
           verify_model(Tile5(), input_data=input_data)
   ```
   The above code will be error in version 2.1: Tensor `reps`  holds the wrong 
type, it holds int64_t, but desires to be int.
   
   But in version 2.4,  the code works well and passes the test cases


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

Reply via email to