Add simple patterns for llama#1601
Conversation
Signed-off-by: Xavier Dupre <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1601 +/- ##
==========================================
- Coverage 76.41% 75.84% -0.57%
==========================================
Files 240 240
Lines 25294 25500 +206
Branches 4482 4540 +58
==========================================
+ Hits 19328 19341 +13
- Misses 5097 5269 +172
- Partials 869 890 +21 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
|
For all test models, I would use onnxscript to create them when possible to establish it as the high level api for builiding onnx models. |
I know well the onnx api but not yet onnxscript. The documentation is missing very easy example I can copy paste and change. |
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
Signed-off-by: Xavier Dupre <[email protected]>
| if generic: | ||
| import onnxscript.rewriter.generic_pattern as orpp | ||
|
|
||
| return RewriteRule( | ||
| rule_class.pattern, | ||
| rule_class.rewrite, | ||
| rule_class.check, | ||
| orpp.GenericPatternMatcher, | ||
| name=rule_class.__name__, # type: ignore[union-attr] |
There was a problem hiding this comment.
I am concerned about breaking this into different paths again.
No description provided.