-
Notifications
You must be signed in to change notification settings - Fork 157
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/pass] Add fp32_to_uint8_cast to header #14296
Conversation
plz check #13480 (comment) |
@@ -292,11 +292,9 @@ uint32_t cal_offset(loco::TensorShape &dimension, uint32_t *indices) | |||
indices[2] * dimension.dim(3).value() + indices[3]; | |||
} | |||
|
|||
uint32_t cal_offset_2d(loco::TensorShape &dimension, uint32_t *indices) | |||
uint32_t cal_offset_2d(loco::TensorShape &dimension, uint32_t indices[2]) |
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.
This is odd.
I don't like adding 2d
suffix and don't like adding [2]
too.
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 understand that it's not easy to add it like that.
I can use the original functioncal_offset
. I will remove it
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 don't think caller code would come up with a nice code.
It would be better to revise existing cal_offset
to accept current 4d and new 2d.
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.
And it would be better to split these two.
They don't have common context.
d5740bb
to
3bd0fa2
Compare
Current change and commit title/description doesn't match. |
Current first commit message is
|
3f3d46a
to
2193541
Compare
Fixed it, thank you |
Your commit message doesn't match with the change. |
2e6da7c
to
abdc9c5
Compare
This commit add the fp32_to_uint8_cast in the header file. ONE-DCO-1.0-Signed-off-by: y01000.you <[email protected]>
abdc9c5
to
cf57989
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
This commit add the
fp32_to_uint8_cast
in the header file.Related Issue : #13480
Draft PR: #13585
ONE-DCO-1.0-Signed-off-by: y01000.you [email protected]