You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/12/04 02:59:28 UTC

[GitHub] [tvm] merrymercy opened a new pull request #7030: [Frontend] Prevent tflite frontend from producing int64 shape

merrymercy opened a new pull request #7030:
URL: https://github.com/apache/tvm/pull/7030


   I found some shapes and parameters (padding) are converted to int64 from tflite frontend.
   It will result in a placeholder shape be `[1, (int64) 112, (int64) 112, 64]`. Some of them are int32, the others are int32.
   This fails some optimization in the auto-scheduler.
   
   This is because `ShapeAsNumpy` returns `np.int32`, but it is automatically upcasted to `np.int64` when doing computation. We convert all `np.int32` to python's int to prevent this auto upcast.
   


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



[GitHub] [tvm] tqchen merged pull request #7030: [Frontend] Prevent tflite frontend from producing int64 shape/parameters

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #7030:
URL: https://github.com/apache/tvm/pull/7030


   


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



[GitHub] [tvm] FrozenGene commented on pull request #7030: [Frontend] Prevent tflite frontend from producing int64 shape/parameters

Posted by GitBox <gi...@apache.org>.
FrozenGene commented on pull request #7030:
URL: https://github.com/apache/tvm/pull/7030#issuecomment-738540812


   Seems this pr should resolve https://github.com/apache/tvm/pull/7009's goal


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