Skip to content
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

Fixed test pearson metric issue with old pytorch versions #3225

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Apr 1, 2024

Description:

         m = PearsonCorrelation()
        m.attach(engine, "corr")
    
>       np_y = y.ravel().numpy()
E       AttributeError: 'Tensor' object has no attribute 'ravel'

tests/ignite/metrics/regression/test_pearson_correlation.py:123: AttributeError

cc @kzkadc

Restarted GHA PyTorch versions tests on this PR: https://github.com/pytorch/ignite/actions/runs/8505830753

@vfdev-5 vfdev-5 merged commit 216b348 into master Apr 1, 2024
18 of 40 checks passed
@vfdev-5 vfdev-5 deleted the fix-old-pytorch-issue-pearson-tests branch April 1, 2024 09:57
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.

1 participant