-
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
[6/10] Code generation for fully connected layer via CMSIS-NN #9456
Conversation
cc: @Mousius @manupa-arm @leandron @areusch for code reviews. |
Change-Id: I67f65e69dfa2c6d31c2ea928d92a827df80bc51a
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.
Broadly looks good! Few stylistic comments!
scalar_args = tvm::runtime::Concat(scalar_args, cmsisnn_filter_shape); | ||
scalar_args = tvm::runtime::Concat(scalar_args, bias_shape); | ||
scalar_args = tvm::runtime::Concat(scalar_args, cmsisnn_output_shape); | ||
call_ext_args = tvm::runtime::Concat(call_ext_args, scalar_args); |
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.
nit : Would it be possible to keep the definitions of sub-catergories that get concatenated closer to here ? So it is easy to follow ?
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 didn't get this. Which ones should be close together and are not?
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.
e.g.
Array<PrimExpr> cmsisnn_input_shape{input_shape[0], 1, 1, input_shape[1]};
scalar_args = tvm::runtime::Concat(scalar_args, cmsisnn_input_shape);
Array<PrimExpr> cmsisnn_filter_shape{in_channels, 1, 1, out_channels};
scalar_args = tvm::runtime::Concat(scalar_args, cmsisnn_filter_shape);
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 see what you mean
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.
Can't do because of a cross dependency in this case 😕
Support for fully connected layer via CMSIS-NN.
Here is the tracking issue: #8646