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

quick fix #634

Closed
wants to merge 1 commit into from
Closed

quick fix #634

wants to merge 1 commit into from

Conversation

czxttkl
Copy link
Contributor

@czxttkl czxttkl commented Apr 28, 2022

Summary: When KeyedJaggedTensor doesn't have weights, .weights() will throw an assertion error. We should use .weights_or_none() to check if a KJT has weights.

Differential Revision: D36005910

@facebook-github-bot
Copy link

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

Summary:
Pull Request resolved: facebookresearch#634

When KeyedJaggedTensor doesn't have weights, `.weights()` will throw an assertion error. We should use `.weights_or_none()` to check if a KJT has weights.

Reviewed By: BerenLuthien

Differential Revision: D36005910

fbshipit-source-id: dbef99a6aad7ecf5d9bb85ec51899053a18e70eb
@facebook-github-bot
Copy link

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

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.

2 participants