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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow freezing only subset of data and dims #7248

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Apr 12, 2024

Description

This improves the optimization introduced on #7047, to allow freezing a subset of dims and data
It also fixes a bug where the dim_lengths were not returned

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

馃摎 Documentation preview 馃摎: https://pymc--7248.org.readthedocs.build/en/7248/

@ricardoV94
Copy link
Member Author

One day mypy will be useful, today is not that day

@ricardoV94 ricardoV94 force-pushed the freeze_dims_data_enh branch 2 times, most recently from ecaf65b to 9ad0b75 Compare April 16, 2024 16:09
Copy link
Contributor

@zaxtax zaxtax left a comment

Choose a reason for hiding this comment

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

We should have a test that the original model can still be changed. Otherwise looks fine to me!

*Also fix dim_lengths not being returned
@ricardoV94
Copy link
Member Author

We should have a test that the original model can still be changed. Otherwise looks fine to me!

Added that check to the first test

@ricardoV94 ricardoV94 requested a review from zaxtax April 30, 2024 14:04
Copy link
Contributor

@zaxtax zaxtax left a comment

Choose a reason for hiding this comment

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

LGTM

@ricardoV94 ricardoV94 merged commit 0ad689c into pymc-devs:main Apr 30, 2024
20 checks passed
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.

None yet

2 participants