Skip to content

Conversation

@skotapati
Copy link
Collaborator

…in inverse & matrix_pow tests (#236)""

This reverts commit d88dc8b.

Segfaults seen during testing may have been device-specific. Creating PR to test using CI

Fixes #ISSUE_NUMBER

…in inverse & matrix_pow tests (#236)""

This reverts commit d88dc8b.

Segfaults seen during testing may have been device-specific. Creating PR to test using CI
@DenisVieriu97 DenisVieriu97 force-pushed the dev/skotapati/linalg_inv_test branch from 8b9a84d to d81081b Compare January 31, 2023 18:22
MPSStream* stream = getCurrentMPSStream();
info.zero_();

if (A.numel() == 0) {

Choose a reason for hiding this comment

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

Can you move this code along with info.zero_() to the beginning of this function? Because if A.numel() == 0 , then the A.to("cpu") in the line 17 may cause problems:
at::linalg_inv_ex_out(cpu_result, cpu_info, A.to("cpu"));

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.

3 participants