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/06/06 00:41:41 UTC

[GitHub] [incubator-tvm] comaniac opened a new pull request #5739: [Bugfix] Fix reshape

comaniac opened a new pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739


   Sorry for the similar PR as #5732, as I found that some other places, such as MXNet frontend, are also using `reshape` with new shape type `Tuple[IntImm, IntImm, int]`. This PR fixes the reshape directly by trying to convert `IntImm` to primitive integer type.
   
   This PR is more like a patch fix for #5429.
   
   cc @icemelon9 


----------------------------------------------------------------
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] [incubator-tvm] icemelon9 commented on a change in pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
icemelon9 commented on a change in pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739#discussion_r437751550



##########
File path: python/tvm/relay/op/transform.py
##########
@@ -20,6 +20,7 @@
 
 from . import _make
 from ..expr import TupleWrapper, const
+from ...tir.expr import IntImm

Review comment:
       Better change to `from ...tir import expr as _expr`. And probably don't need the fix for the doc then.




----------------------------------------------------------------
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] [incubator-tvm] icemelon9 merged pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
icemelon9 merged pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739


   


----------------------------------------------------------------
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] [incubator-tvm] icemelon9 commented on a change in pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
icemelon9 commented on a change in pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739#discussion_r437751550



##########
File path: python/tvm/relay/op/transform.py
##########
@@ -20,6 +20,7 @@
 
 from . import _make
 from ..expr import TupleWrapper, const
+from ...tir.expr import IntImm

Review comment:
       Probably better change to `from ...tir import expr as _expr`. And probably don't need the fix for the doc then.




----------------------------------------------------------------
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] [incubator-tvm] comaniac commented on a change in pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
comaniac commented on a change in pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739#discussion_r437756451



##########
File path: python/tvm/relay/op/transform.py
##########
@@ -20,6 +20,7 @@
 
 from . import _make
 from ..expr import TupleWrapper, const
+from ...tir.expr import IntImm

Review comment:
       good idea. changed.




----------------------------------------------------------------
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] [incubator-tvm] icemelon9 commented on pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
icemelon9 commented on pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739#issuecomment-641722963


   Thanks @comaniac this is now merged.


----------------------------------------------------------------
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] [incubator-tvm] comaniac commented on pull request #5739: [Bugfix] Fix reshape

Posted by GitBox <gi...@apache.org>.
comaniac commented on pull request #5739:
URL: https://github.com/apache/incubator-tvm/pull/5739#issuecomment-641603826


   CI passed.
   @icemelon9 PTAL.


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