-
Notifications
You must be signed in to change notification settings - Fork 169
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 to function and decorator for AffineQuantizedTensor
#251
Conversation
Summary: att Next: we can move AffineQuantizedTensor to dtypes and make nf4tensor to use the same implements decorator Test Plan: python test/quantization/test_quant_api.py Reviewers: Subscribers: Tasks: Tags:
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/251
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 7eed84a with merge base 9b25ecc (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
looks good, nice cleanup, the only concern I have (potentially unfounded) is the potential for circular imports. Since every subclass will need to share the global op table they will all need to import from this file. Not sure if there is that much benefit to have a global op registry dict
oh we'll not put the general stuff in this file, current code is still temporary state, we'll move to dtypes folder global op registry dict is more for convenience, it's not required, we can refactor as well if that becomes an issue |
# args[0].transposed = not args[0].transposed | ||
# new = args[0]._change_shape(args[0].shape[::-1]) | ||
# return return_and_correct_aliasing(func, args, kwargs, new) | ||
raise Exception("transpose not implemented yet") |
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.
I think you could even return NotImplemented
, which will result in a more standardized stack trace. Give it a try if you like.
Summary: att Next: we can move AffineQuantizedTensor to dtypes and make nf4tensor to use the same implements decorator Test Plan: python test/quantization/test_quant_api.py Reviewers: Subscribers: Tasks: Tags:
Summary:
att
Next: we can move AffineQuantizedTensor to dtypes and make nf4tensor to use the same implements decorator
Test Plan:
python test/quantization/test_quant_api.py
Reviewers:
Subscribers:
Tasks:
Tags: