-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[4a/10] [CMSIS-NN] Calculate CMSIS-NN buffer size with respect to architecture extensions #9338
Conversation
b468ff7
to
c347020
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.
Thanks Chris! LGTM. Some minor comments in there.
This correctly calculates the buffer sizes for a variety of targets based on the `-mcpu` and `-mattr` flags passed to the `cmsis-nn` code generator. Added for Conv2d, Depthwise Conv2d and Average Pool.
9795a5b
to
11a2dad
Compare
ASSERT_EQ(depthwise_conv2d_with_channels(kHasDSP, 4, 6), 0); | ||
ASSERT_EQ(depthwise_conv2d_with_channels(kHasDSP, 8, 7), 0); | ||
ASSERT_EQ(depthwise_conv2d_with_channels(kHasMVE, 4, 6), 0); | ||
ASSERT_EQ(depthwise_conv2d_with_channels(kHasMVE, 8, 7), 0); |
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 like it that you have included multiples of 4 cases here for channel 😄
Thanks @Mousius for this support and also taking care of adding the buffer support for all the other layers that needed buffer size calculations. 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.
LGTM
apache#9338) This correctly calculates the buffer sizes for a variety of targets based on the `-mcpu` and `-mattr` flags passed to the `cmsis-nn` code generator. Added for Conv2d, Depthwise Conv2d and Average Pool.
apache#9338) This correctly calculates the buffer sizes for a variety of targets based on the `-mcpu` and `-mattr` flags passed to the `cmsis-nn` code generator. Added for Conv2d, Depthwise Conv2d and Average Pool.
This correctly calculates the buffer sizes for a variety of targets based on the
-mcpu
and-mattr
flags passed to thecmsis-nn
code generator.Added for Conv2d, Depthwise Conv2d and Average Pool.