-
Notifications
You must be signed in to change notification settings - Fork 159
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] Support Q4_0 & Q8_0 FC weight #14182
Conversation
This commit enables supporting Q4_0 & Q8_0 FullyConnected OP weight. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
|
||
// get cplan | ||
auto cplan = ggml_graph_plan(&graph, _external_context->ruy_context()->max_num_threads()); | ||
cplan.work_data = (uint8_t *)(malloc(cplan.work_size)); |
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.
(Optional)
How about using reinterpret_cast
?
cplan.work_data = (uint8_t *)(malloc(cplan.work_size)); | |
cplan.work_data = reinterpret_cast<uint8_t *>(malloc(cplan.work_size)); |
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'll update buffer usage later with gather OP.
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
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
@nnfw-bot test all |
This commit enables supporting Q4_0 & Q8_0 FullyConnected OP weight.
ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]
Related issue: #13909