-
Notifications
You must be signed in to change notification settings - Fork 178
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
Uintx ops - Slice etc... #1026
base: main
Are you sure you want to change the base?
Uintx ops - Slice etc... #1026
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1026
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -55,6 +56,7 @@ class UintxTensor(TorchAOBaseTensor): | |||
def __new__( | |||
cls, | |||
shards: List[torch.Tensor], | |||
original_size: int, |
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.
what is this parameter used for? Just seems like its getting passed around
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.
It is used in the unpack function
def get_plain(self): return unpack(self.get_shards(), original_size=self.original_size, elem_size=self.bit_width, dim = self.pack_dim)
fix _repr_ and scalar assigment in UintxTensor add basic slice test for uint6 add generic slice tests for uint1-7
In continuation to #458 and #988
ToDo