Skip to content

Conversation

@skotapati
Copy link
Collaborator

Issue with any op implementation was responsible for segfaults seen in Inverse: #270. Changed how we handle empty input to match what is done on cpu side

sidk and others added 2 commits February 2, 2023 09:53
test/test_mps.py Outdated
'sgn': [torch.bool],
'linalg.inv': [torch.float32],
'linalg.inv_ex': [torch.float32],
# 'linalg.inv': [torch.float32],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 'linalg.inv': [torch.float32],

test/test_mps.py Outdated
'linalg.inv': [torch.float32],
'linalg.inv_ex': [torch.float32],
# 'linalg.inv': [torch.float32],
# 'linalg.inv_ex': [torch.float32],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 'linalg.inv_ex': [torch.float32],

Ronian526 and others added 17 commits February 6, 2023 17:00
* Fix addmm calculation:
- ignore input when beta is 0, so that nan and inf will not be propagated.

* - add is_beta_non_zero variable
- This should fix the hard crashes reported in BLOCKLIST_OP_GRAD
such as sigmoid, tanh, masked_fill, linear, prelu, etc.
- The prelu now fails with correctness issues so I kept it in the blocklist
- This should fix cross_entropy_backward() too
- Take grad_output into account when computing nll_loss_backward()
- Clean up
- Take grad_output into account when computing smooth_l1_backward()
- Add numel()==0 check to prevent crashes
- Clean up and formatting
- This patch moves several Grad tests related to FP16 precision from block list to
FP16_LOW_PRECISION_LIST which should produce correct output.
- fix gelu_backward_out_mps key
- uniform format
- add caculation for tanh approximate backward pass
- unblock grad test from blocklist
- fix lintrunner errors
* Use DISTRIBUTED=1 for MPS CI runners

* Disable openmp
Co-authored-by: sidk <sidk@sidks-mbp.lan>
…OUR, as zero to negative integer powers are undefined (#288)
- Add divisor to cached string key to avoid conflicts
- Fallback to CPU when divisor is passed for int64 input types
- Remove MaxPool2D from UNIMPLEMENTED_OP list (was put there by mistake)
- Add test case when both ceil_mode and count_include_pad are True (previously failed).
@skotapati skotapati closed this Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants