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

Address the issues in #3274 #3277

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Address the issues in #3274 #3277

merged 1 commit into from
Oct 5, 2023

Conversation

cyianor
Copy link
Contributor

@cyianor cyianor commented Oct 5, 2023

Fixes #3274

  • Added support = constraints.real_vector to MixtureOfDiagNormals and MixtureOfDiagNormalsSharedCovariance
  • Fixed the white noise sampling bug in the forward method of _MixDiagNormalSample
  • Same call in _MixDiagNormalSample and _MixDiagNormalSharedCovarianceSample to generate white noise
  • Harmonized tensor shape error messages between MixtureOfDiagNormals and MixtureOfDiagNormalsSharedCovariance
  • Added the correct class name in tensor shape errors for MixtureOfDiagNormalsSharedCovariance

make format went through without problems. make lint runs with the change noted in issue #3276 but fails with some type errors in pyro/optim. This is not related to any changes I made here. The rest of the linting goes through without a problem.

* Added `support = constraints.real_vector` to `MixtureOfDiagNormals`
  and `MixtureOfDiagNormalsSharedCovariance`
* Fixed the white noise sampling bug in the `forward` method of
  `_MixDiagNormalSample`
* Same call in `_MixDiagNormalSample` and
  `_MixDiagNormalSharedCovarianceSample` to generate white noise
* Harmonized tensor shape error messages between `MixtureOfDiagNormals`
  and `MixtureOfDiagNormalsSharedCovariance`
* Added the correct class name in tensor shape errors for
  `MixtureOfDiagNormalsSharedCovariance`
Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@fritzo fritzo merged commit 41ac46f into pyro-ppl:dev Oct 5, 2023
9 checks passed
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.

[bug] MixtureOfDiagNormals
2 participants