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

Add sample_shape property to ListSampler #1624

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
In some cases, we access sampler.sample_shape, which errors out with ListSampler. This adds a property that returns the sample shape of the underlying samplers.

See #1623 (comment)

Differential Revision: D42421646

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Jan 9, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42421646

@saitcakmak saitcakmak linked an issue Jan 9, 2023 that may be closed by this pull request
Summary:
Pull Request resolved: pytorch#1624

In some cases, we access sampler.sample_shape, which errors out with ListSampler. This adds a property that returns the sample shape of the underlying samplers.

See pytorch#1623 (comment)

Differential Revision: D42421646

fbshipit-source-id: ce6053edab6ed9450d7c06f57defff556ae2a63f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42421646

Copy link
Contributor

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a79071d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Batch shape missing in TransformedPosterior
3 participants