-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[PatternLang] Add a relay LetPattern #7332
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
Conversation
f5662b3 to
b38f5b5
Compare
comaniac
left a comment
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.
LGTM. Just a few typos.
|
I wonder, do we need to match against the let bound variable? Isn't it always |
|
@masahi I agree the Expr will always be a var, but I wanted to let users match on more complicated attributes like name/dtype/shape/etc, so I left it a general in pattern |
Co-authored-by: Cody Yu <comaniac0422@gmail.com>
Co-authored-by: Cody Yu <comaniac0422@gmail.com>
|
Thanks @mbrookhart @comaniac |
* Add a relay LetPattern * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> Co-authored-by: Cody Yu <comaniac0422@gmail.com>
* Add a relay LetPattern * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> Co-authored-by: Cody Yu <comaniac0422@gmail.com>
* Add a relay LetPattern * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> Co-authored-by: Cody Yu <comaniac0422@gmail.com>
* Add a relay LetPattern * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> * fix If copy Co-authored-by: Cody Yu <comaniac0422@gmail.com> Co-authored-by: Cody Yu <comaniac0422@gmail.com>
I found myself needing a Let pattern for some object detection work. Thanks for taking a look!