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 svdf cmsis-nn #13719

Merged

Conversation

BalyshevArtem
Copy link
Contributor

@BalyshevArtem BalyshevArtem commented Aug 20, 2024

This pr adds svdf cmsis-nn kernel.

for #13634

ONE-DCO-1.0-Signed-off-by: Artem Balyshev a.balyshev@samsung.com

nnas_include(OptionTools)

envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
envoption(CMSIS_NN_6_0_0_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/CMSIS-NN/archive/refs/tags/v6.0.0.tar.gz)
Copy link
Contributor

Choose a reason for hiding this comment

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

@BalyshevArtem this PR does not work with CMSIS_NN 4.1 ? I am not sure which CMSIS_NN version in TizenRT.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, if it is critical, I can rewrite it with 4.1 cmsis-nn, but current implementation required 6.0. TFLITE-micro uses the 6.0 version. Rewrite using 4.0?

Copy link
Contributor

Choose a reason for hiding this comment

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

It does not matter if it is compatible to TizenRT(but I do not know which version in TizenRT in use. It 'was' compatible to 4.1)

Copy link
Contributor

@chunseoklee chunseoklee Aug 22, 2024

Choose a reason for hiding this comment

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

FYI, internal TizenRT use the same file at https://github.com/Samsung/TizenRT/blob/master/external/include/cmsis_nn/arm_nnfunctions.h#L1675 for cmsis_nn. Seem like it is based on 4.1 instead of 6.0 (based on parameter numbers)

Copy link
Contributor

Choose a reason for hiding this comment

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

Rewrite using 4.0?

Is it possible ? I do not know about SVDF. But CMSIS_NN 4.1 does not use kernel_sum at all in SVDF kernel.

Copy link
Contributor Author

@BalyshevArtem BalyshevArtem Aug 22, 2024

Choose a reason for hiding this comment

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

Is it possible ?

Yes :)
Okay, I will rewrite to 4.1 and close prs with cmsis-nn version updating

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, ready for review

This draft adds svdf cmsis-nn kernel.

ONE-DCO-1.0-Signed-off-by: Artem Balyshev <a.balyshev@samsung.com
@BalyshevArtem BalyshevArtem force-pushed the svdf_cmsis_nn_onert_micro_draft branch from 729f163 to c434966 Compare August 22, 2024 10:53
@BalyshevArtem BalyshevArtem changed the title [DRAFT][onert-micro] Add svdf cmsis-nn [onert-micro] Add svdf cmsis-nn Aug 22, 2024
@BalyshevArtem BalyshevArtem marked this pull request as ready for review August 22, 2024 10:53
@BalyshevArtem BalyshevArtem added the PR/ready for review It is ready to review. Please review it. label Aug 22, 2024
@BalyshevArtem BalyshevArtem merged commit aa86e3d into Samsung:master Aug 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants