-
Notifications
You must be signed in to change notification settings - Fork 462
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
tag KJT related part to sc.INPUT_DIST #2678
base: main
Are you sure you want to change the base?
Conversation
Summary: tag KJT output to sc.INPUT_DIST to enforce placement on CPU Differential Revision: D67313214
This pull request was exported from Phabricator. Differential Revision: D67313214 |
@@ -300,6 +300,23 @@ def _fx_trec_unwrap_kjt( | |||
return indices.int(), offsets.int() | |||
|
|||
|
|||
@torch.fx.wrap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits
CPU - int32 or int64, offsets dtype must match | ||
GPU - int32 only, offsets dtype must match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you provide reference on this dtype?
Summary: tag KJT output to sc.INPUT_DIST to enforce placement on CPU
Differential Revision: D67313214