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

Make dim divisible by 4 requirement more explicit #490

Closed
wants to merge 1 commit into from

Conversation

xush6528
Copy link
Contributor

Summary:

Problem

User report here
https://fb.prod.workplace.com/groups/1069285536500339/permalink/5254923157936535/

Error stack, P512815141

PyTorch batched embedding table op requires dim to be divisible by 4.

The particular error is asserting one table is having dim=1.
Code pointer to the assertion, https://fburl.com/code/rucb3gzn

Improvement

Make the assertion more actionable to users.
Include table names to users know which model config to look at.

Solution

Verify and assert here instead, because here we still have context about table_names.

https://fburl.com/code/5ukomhpt

Differential Revision: D37496262

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 29, 2022
@facebook-github-bot
Copy link
Contributor

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

xush6528 added a commit to xush6528/torchrec that referenced this pull request Jun 29, 2022
Summary:
Pull Request resolved: pytorch#490

# Problem

User report here
https://fb.prod.workplace.com/groups/1069285536500339/permalink/5254923157936535/

Error stack, P512815141

PyTorch batched embedding table op requires dim to be divisible by 4.

The particular error is asserting one table is having dim=1.
Code pointer to the assertion, https://fburl.com/code/rucb3gzn

# Improvement

Make the assertion more actionable to users.
Include table names to users know which model config to look at.

# Solution

Verify and assert here instead, because here we still have context about table_names.

https://fburl.com/code/5ukomhpt

Differential Revision: D37496262

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

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

Summary:
Pull Request resolved: pytorch#490

# Problem

User report here
https://fb.prod.workplace.com/groups/1069285536500339/permalink/5254923157936535/

Error stack, P512815141

PyTorch batched embedding table op requires dim to be divisible by 4.

The particular error is asserting one table is having dim=1.
Code pointer to the assertion, https://fburl.com/code/rucb3gzn

# Improvement

Make the assertion more actionable to users.
Include table names to users know which model config to look at.

Verify and assert ahead  when we still have context about table_names.

https://fburl.com/code/5ukomhpt

Reviewed By: divchenko

Differential Revision: D37496262

fbshipit-source-id: 761c666b2e1d173edfa8cfef4aea77cabcfaf022
@xush6528 xush6528 force-pushed the export-D37496262 branch from 84c7270 to c9daf25 Compare July 1, 2022 00:18
@facebook-github-bot
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants