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 2022/06/22 07:54:33 UTC

[GitHub] [tvm] ah-cheng opened a new pull request, #11825: [realy][pass]add split infer shape with convert op layout pass

ah-cheng opened a new pull request, #11825:
URL: https://github.com/apache/tvm/pull/11825

   add SplitInferCorrectLayout.
   


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] chengven027-intellif commented on pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
chengven027-intellif commented on PR #11825:
URL: https://github.com/apache/tvm/pull/11825#issuecomment-1217501726

   ok, thanks. Maybe I didn't consider this situation. 


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] masahi commented on pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
masahi commented on PR #11825:
URL: https://github.com/apache/tvm/pull/11825#issuecomment-1217407841

   @chengven027-intellif I've just hit a bug with `SplitInferCorrectLayout`. The model I have `split` op which splits along `C` dim in `NCHW` like this:
   
   ```
     %514 = multiply(%512, %513) /* ty=Tensor[(1, 256, 30, 17), float16] */;
     %515 = split(%514, indices_or_sections=[128], axis=-3) /* ty=(Tensor[(1, 128, 30, 17), float16], Tensor[(1, 128, 30, 17), float16]) */;
   ```
   
   This is going to be a problem for x86 or other backend that uses `NCHWc` layout. Since the original splitting axis is blocked along two axes, `SplitInferCorrectLayout` needs to change both `indices_or_sections` and `axis` parameters. Right now our `split` op supports only integer axis, so this change could be difficult.
   
   Unless you have a solution, I think we need to revert this PR. Or specially handle `NCHWc` layout by giving up layout fall-through (insert `layout_transform`) if the input layout is `NCHWc`.
   
   You can reproduce this error by running https://gist.github.com/masahi/dce79525a5d0bd9c8a5d04992c060ab0


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] alter-xp commented on pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
alter-xp commented on PR #11825:
URL: https://github.com/apache/tvm/pull/11825#issuecomment-1252272827

   > This is going to be a problem for x86 or other backend that uses NCHWc layout.
   
   hi @chengven027-intellif  @masahi,  The same problem occurred to my model. So in addition to disabling this part of the code, is there a good solution to this? 
   
   


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] masahi commented on pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
masahi commented on PR #11825:
URL: https://github.com/apache/tvm/pull/11825#issuecomment-1252821648

   There is no easy solution, we should revert this.


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] masahi merged pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
masahi merged PR #11825:
URL: https://github.com/apache/tvm/pull/11825


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] ah-cheng commented on pull request #11825: [realy][pass]add split infer shape with convert op layout pass

Posted by GitBox <gi...@apache.org>.
ah-cheng commented on PR #11825:
URL: https://github.com/apache/tvm/pull/11825#issuecomment-1164281038

   cc @masahi please review when you got time.


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org