-
Couldn't load subscription status.
- Fork 263
[ONNX][SmoothQuant] Introduce new axes and axes_mode parameters #3687
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
Changes from 12 commits
6a0fbf2
17062a6
2d08025
57d828f
a801647
53c6d72
97cab6a
3a96172
8f16b32
acb88d7
104dea5
4c11627
8b2ea5f
dd61ed7
92dee3e
aa8691f
1458577
55e171f
b9365c7
bbdd037
e09ff06
6579eb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,13 +43,24 @@ class TensorReducerBase(ABC): | |||||
| the specified rule. Could handle tensors inplace or out of place. | ||||||
| """ | ||||||
|
|
||||||
| def __init__(self, reduction_axes: Optional[ReductionAxes] = None, inplace: bool = False): | ||||||
| def __init__( | ||||||
| self, | ||||||
| reduction_axes: Optional[ReductionAxes] = None, | ||||||
| keep_axes: Optional[tuple[int, ...]] = None, | ||||||
|
||||||
| keep_axes: Optional[tuple[int, ...]] = None, | |
| keep_axes: Optional[Axes] = None, |
Perhaps we could rename ReductionAxes and reuse them there?
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.
Done
ljaljushkin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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.
Perhaps we should update __hash__ methods for some of the TensorReducerBase as well
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.
Done
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.
Should we forward this parameter in the children of the
TensorReducerBase?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.
Done