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

Work around offsets and indices type mismatch int TBE training #3037

Closed
wants to merge 1 commit into from

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Aug 26, 2024

Summary:
D61524189 added bounds_check_indices in the prefetch function. It
expects indices and offsets to have the same type. However, that
is not always the case. This diff forces type casting on indices
and offsets if they do not have the same type. A long term solution
is to update bounds_check_indices to support indices and offsets
that have different types.

Reviewed By: PaulZhang12

Differential Revision: D61801695

Copy link

netlify bot commented Aug 26, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 324888f
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/66ccb53791075b00089a32cb
😎 Deploy Preview https://deploy-preview-3037--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

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

…ch#3037)

Summary:
X-link: facebookresearch/FBGEMM#135

Pull Request resolved: pytorch#3037

D61524189 added `bounds_check_indices` in the `prefetch` function.  It
expects `indices` and `offsets` to have the same type.  However, that
is not always the case.  This diff forces type casting on `indices`
and `offsets` if they do not have the same type.  A long term solution
is to update `bounds_check_indices` to support `indices` and `offsets`
that have different types.

Reviewed By: PaulZhang12

Differential Revision: D61801695
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e782781.

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