Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-2015 committed Oct 8, 2024
1 parent 487c17a commit b84853c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tensorflow/lite/micro/micro_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,17 @@ void DecompressionState::DecompressToBufferWidth4_Xtensa(int8_t* buffer) {

template <size_t N>
void DecompressionState::DecompressToBufferWidthAny_Xtensa(int8_t* buffer) {
static char func_name[80];
const char* func_name_p = __func__;
MicroProfiler* profiler =
static_cast<MicroProfiler*>(micro_context_->external_context());
ScopedMicroProfiler scoped_profiler(__func__, profiler);
if (profiler != nullptr) {
MicroSnprintf(func_name, sizeof(func_name), "%s_%u_%s", __func__,
compressed_bit_width_,
TfLiteTypeGetName(typeToTfLiteType<int8_t>()));
func_name_p = func_name;
}
ScopedMicroProfiler scoped_profiler(func_name_p, profiler);

const size_t stride = comp_data_.data.lut_data->value_table_channel_stride;
const uint8_t* value_table =
Expand Down Expand Up @@ -579,6 +587,7 @@ T* DecompressionState::DecompressToBuffer(void* buffer) {
comp_data_.data.lut_data->value_table_channel_stride == 16) {
DecompressToBufferWidth4_Xtensa(static_cast<int8_t*>(buffer));
} else {
//DecompressToBufferWidth4_16(static_cast<int8_t*>(buffer));
DecompressToBufferWidthAny_Xtensa<4>(static_cast<int8_t*>(buffer));
}
#else // HIFI5
Expand Down

0 comments on commit b84853c

Please sign in to comment.