Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tensorflow/lite/micro/kernels/add_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ TfLiteStatus CalculateOpDataAdd(TfLiteContext* context, TfLiteAddParams* params,
data->requires_broadcast = !HaveSameShapes(input1, input2);

if (output->type == kTfLiteInt8 || output->type == kTfLiteInt16) {
TFLITE_CHECK_NE(output->quantization.type, kTfLiteNoQuantization);

// 8bit -> 8bit general quantized path, with general rescalings
data->input1_offset = -input1->params.zero_point;
data->input2_offset = -input2->params.zero_point;
Expand Down