- 
                Notifications
    
You must be signed in to change notification settings  - Fork 559
 
Accept int32 as index for index_add op #2580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           could you add torch_pin to check whether this PR fixes all issues from the upstream PR? Thanks!  | 
    
5cd6b60    to
    bcd6f51      
    Compare
  
    
          
 sure, I run it locally(with pytorch patch) and confirmed that failed test is passing with this change.  | 
    
| 
           Thanks for the fix! I'm updating index_select to support int32 indices as well. Do you think we need to fix that for XLA too?  | 
    
| 
           @qizzzh qi will that be in a separate pr? If that's the case we can do a follow up pr on pt/xla when that happens.  | 
    
| 
           test passed locally on my cpu machine, rerun it on circleCI  | 
    
          
 It's in the same PR. Just updated. Please feel free to take a look. Thanks!  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test ...
bcd6f51    to
    1dd9e44      
    Compare
  
    | 
           @qizzzh it seems like pt/xla does not check   | 
    
This is to fix #2575, in pytorch pr pytorch/pytorch#46758,
index_addwithint32support is added, xla needs to follow the same logic.