You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: https://github.com/pytorch/fx2trt/pull/69
fix the pass for corner cases:
1. position index is not a slice type but a int in setitem. Change it to a slice type. For ex, [:, 1] - > [:, 1:2]
2. Similarly, for getitem (input for this setitem) that has integer index like [:, 1], the output will remove the 2nd dimension. It will bring trouble for setitem as we are lack of shape info. I will replace with a slice like [:, 1:2]
Reviewed By: yinghai
Differential Revision: D36136098
fbshipit-source-id: c48f976fe639ff3fa159b44c8c2287f202898901
0 commit comments