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

[Types] Diagnostics and Utils #1912

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

juanitorduz
Copy link
Contributor

Add more type-hints. Related to #299 .

@@ -24,7 +24,7 @@
]


def _compute_chain_variance_stats(x):
def _compute_chain_variance_stats(x: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of these functions assume true numpy arrays, so this was the only way to make it work without adding many changes.

@juanitorduz juanitorduz force-pushed the types-utils-diagnostics branch from 9bae35c to f6af157 Compare November 17, 2024 22:32
@fehiepsi fehiepsi merged commit c110053 into pyro-ppl:master Nov 17, 2024
8 checks passed
@juanitorduz juanitorduz deleted the types-utils-diagnostics branch November 18, 2024 06:46
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.

2 participants