Skip to content

Commit

Permalink
Merge branch 'ci/sync_gh_tflite-micro' into 'master'
Browse files Browse the repository at this point in the history
Sync esp-tflite-micro from github - 833097

See merge request app-frameworks/esp-tflite-micro!157
  • Loading branch information
vikramdattu committed Nov 11, 2024
2 parents bf671df + 9da9a9b commit 9128d06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 143 deletions.
9 changes: 7 additions & 2 deletions tensorflow/lite/kernels/internal/reference/batch_matmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ inline void BatchMatMul(const RuntimeShape& lhs_shape, const int8_t* lhs_data,
const float* scaling_factors,
const int32_t* input_offset, int32_t* row_sums,
const RuntimeShape& output_shape, float* output_data,
bool* compute_row_sums) {
bool* compute_row_sums,
const float* per_channel_scales) {
const RuntimeShape extended_lhs_shape =
RuntimeShape::ExtendedShape(5, lhs_shape);
const RuntimeShape extended_rhs_shape =
Expand Down Expand Up @@ -188,7 +189,11 @@ inline void BatchMatMul(const RuntimeShape& lhs_shape, const int8_t* lhs_data,
int32_t row_sum = woff_ptr2[i];
total -= row_sum * batch_offset;
int idx = lhs_rows * j + i;
out_ptr[idx] += batch_scaling_factor * total;
float scale = batch_scaling_factor;
if (per_channel_scales) {
scale *= per_channel_scales[i];
}
out_ptr[idx] += scale * total;
}
}
}
Expand Down
59 changes: 0 additions & 59 deletions tensorflow/lite/micro/span_test.cc

This file was deleted.

82 changes: 0 additions & 82 deletions tensorflow/lite/micro/static_vector_test.cc

This file was deleted.

0 comments on commit 9128d06

Please sign in to comment.