-
Notifications
You must be signed in to change notification settings - Fork 440
Fix incorrect declarations #8812
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: cyy <[email protected]>
src/xnnpack/internal.h
Outdated
@@ -103,7 +103,7 @@ enum xnn_status xnn_setup_batch_matrix_multiply_nc_qp8_f32_qc8w( | |||
xnn_operator_t batch_matrix_multiply_op, // | |||
void* workspace, // | |||
const int8_t* input_a, // | |||
const int8_t* input_b, // | |||
const float* input_b, // |
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.
this doesnt look right. the input_b is qc8w which is int8_t
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.
But the function definition in src/operators/batch-matrix-multiply-nc.c
uses const float* input_b
.
PS: it looks like I should change the definition.
Signed-off-by: cyy <[email protected]>
Signed-off-by: cyy <[email protected]>
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.
on 2nd look, i think you got it right
qp8_f32_qc8w
a is 8 bit
b is 8 bit
output is float
Are you seeing a build error/warning that this fixes?
I tried lto and GCC or Clang complained it. It still can't build with lto after these fixes. |
No description provided.