You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference representation of dqlinear int4 for xnnpack (#2520)
* When replacing literals with placeholders lists are always converted to
tuples
Summary:
THis is needed because lists are not hashable, since they are mutable,
and as a result we cannot have literals_to_ph in pattern rewrites used
inside reference_representation_rewrite.py
Test Plan:
CI + next diff relies on this feature
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Allow pattern replacement to ignore literals
Summary:
This is necessary because sometimes the patterns found have literals
include tuple of ints kind of literals. This values shouldnt be used for
pattern matching since often they are based on consts derived from
example inputs.
THis is not exactly a safe thing to do in general so by default it is
turned off
Test Plan:
Subsequent diff adds a pattern that relies on this
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Reference representation of dqlinear int4 for xnnpack
Summary:
This diff adds dynamic quantized linear's integer arithmetic
representation. This is quite close to how arithmetic is done in
xnnpack.
Basic tests added against q/dq to make things are sane.
Followups:
- See if such a graph is traceable.
- Optimize implementation if needed
Test Plan:
added
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Update base for Update on "Reference representation of dqlinear int4 for xnnpack"
Summary:
This diff adds dynamic quantized linear's integer arithmetic
representation. This is quite close to how arithmetic is done in
xnnpack.
Basic tests added against q/dq to make things are sane.
Followups:
- See if such a graph is traceable.
- Optimize implementation if needed
Test Plan:
added
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Update base for Update on "Reference representation of dqlinear int4 for xnnpack"
Summary:
This diff adds dynamic quantized linear's integer arithmetic
representation. This is quite close to how arithmetic is done in
xnnpack.
Basic tests added against q/dq to make things are sane.
Followups:
- See if such a graph is traceable.
- Optimize implementation if needed
Test Plan:
added
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Update base for Update on "Reference representation of dqlinear int4 for xnnpack"
Summary:
This diff adds dynamic quantized linear's integer arithmetic
representation. This is quite close to how arithmetic is done in
xnnpack.
Basic tests added against q/dq to make things are sane.
Followups:
- See if such a graph is traceable.
- Optimize implementation if needed
Test Plan:
added
Reviewers:
Subscribers:
Tasks:
Tags:
[ghstack-poisoned]
* Update base for Update on "Reference representation of dqlinear int4 for xnnpack"
Summary:
This diff adds dynamic quantized linear's integer arithmetic
representation. This is quite close to how arithmetic is done in
xnnpack.
Basic tests added against q/dq to make things are sane.
Followups:
- See if such a graph is traceable.
- Optimize implementation if needed
Test Plan:
added
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: [D78198154](https://our.internmc.facebook.com/intern/diff/D78198154)
[ghstack-poisoned]
0 commit comments