-
Notifications
You must be signed in to change notification settings - Fork 159
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
[luci/service] Migrate Quantize shape inference rule to sinf::Algorithm #13812
Conversation
ASSERT_EQ(0, shape.dim(2).value()); | ||
ASSERT_EQ(4, shape.dim(3).value()); | ||
|
||
quantize.drop(); |
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.
have you checked with this drop?
|
||
ASSERT_FALSE(shape_inf_rule.infer(&quantize, shape)); | ||
|
||
quantize.drop(); |
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.
ditto
Also, plz update your commit ( 24ffc63) title.
|
24ffc63
to
bda5613
Compare
@@ -24,4 +27,11 @@ luci::CircleNode *CloneNodeLet<CN::OPQR>::visit(const luci::CircleQuantize *) | |||
return _graph->nodes()->create<luci::CircleQuantize>(); | |||
} | |||
|
|||
loco::TensorShape sinf::Algorithm::visit(const luci::CircleQuantize *node) |
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.
plz revise this like #13810
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.
I applied this to compiler/luci/service/src/Nodes/CircleQuantize.cpp
a7387bd
to
e3d5482
Compare
This commit Migrate Quantize shape inference rule to sinf::Algorithm. ONE-DCO-1.0-Signed-off-by: kyeong8139 <[email protected]>
This commit modify tests without drop. ONE-DCO-1.0-Signed-off-by: kyeong8139 <[email protected]>
This commit use namespace. ONE-DCO-1.0-Signed-off-by: kyeong8139 <[email protected]>
e3d5482
to
51bdff7
Compare
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 thank you!
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
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.
👍
When testing dynamic shape inference, the original quantize operation successfully handles it.
I have migrated the inference code and modified shape_get function to circle_shape
Related to: #13697
draft: #13779
first-pr: #13794 (I fail to modify first commit message.. so I create new pull-request)