Skip to content
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

[onert-micro] Add float BroadcastTo kernels #11633

Merged

Conversation

BalyshevArtem
Copy link
Contributor

This commit adds float BroadcastTo kernels for onert-micro.

for issue: #10933

ONE-DCO-1.0-Signed-off-by: Artem Balyshev [email protected]

This commit adds float BroadcastTo kernels for onert-micro.

ONE-DCO-1.0-Signed-off-by: Artem Balyshev <[email protected]>
Copy link
Contributor

@SlavikMIPT SlavikMIPT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BalyshevArtem BalyshevArtem merged commit a577d8a into Samsung:master Oct 3, 2023
{
namespace
{
constexpr int kMaxDims = 5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BalyshevArtem Hello. During working on https://github.com/Samsung/ONE/pull/11701#issuecomment-1774450755, I met a out-bound error on this. Seems that tensorflow supports up to 8 kMaxDims but 8 occurs an error. Could you let me know why you set kMaxDims 5?

https://github.com/tensorflow/tensorflow/blob/1b8f5c396f0c016ebe81fe1af029e6f205c926a4/tensorflow/lite/kernels/broadcast_to.cc#L118

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we copy here the behavior of tflite micro: https://github.com/tensorflow/tflite-micro/blob/7ac0b662b6402c1fccc8ec8d1db84f0f34dd4a85/tensorflow/lite/micro/kernels/broadcast_to.cc#L31-L32. Now we do not need to support a larger dimension, since all target models contain a smaller dimension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: 1 Require at least 1 approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants