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

Replace torch._utils._accumulate with numpy.cumsum. #3364

Merged
merged 2 commits into from
May 3, 2024

Conversation

BenZickel
Copy link
Contributor

This fixes failures in testing of examples/contrib/mue/FactorMuE.py and examples/contrib/mue/ProfileHMM.py as torch._utils._accumulate was removed in PyTorch 2.3.

@BenZickel BenZickel changed the title Replace torch._utils._accumulate with newly added pyro.util._accumulate. Replace torch._utils._accumulate with numpy.cumsum. May 3, 2024
@fritzo fritzo merged commit ca36025 into pyro-ppl:dev May 3, 2024
9 checks passed
@martinjankowiak
Copy link
Collaborator

@BenZickel thanks! are you aware of any other tests/code that is broken in 2.3?

@BenZickel
Copy link
Contributor Author

@martinjankowiak, I am not aware of any other tests/code that is broken with PyTorch 2.3. The tests mentioned in this PR are the only ones that failed with PyTorch 2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants