mirror of https://github.com/arendst/Tasmota.git
Prepare restoration of Tensorflow driver for Core 3 (#21327)
* Fix compilation of conv.cc * fix compilation of depthwise_conv.cc
This commit is contained in:
parent
041540c80c
commit
6f20dcd0ed
|
@ -115,13 +115,13 @@ TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
|
|||
if (input->type == kTfLiteInt8) {
|
||||
data_dims_t input_dims = {
|
||||
.width = input_width, .height = input_height,
|
||||
.channels = input->dims->data[3], 1
|
||||
.channels = input->dims->data[3], .extra = 1
|
||||
};
|
||||
data_dims_t output_dims = {
|
||||
.width = output_width, .height = output_height,
|
||||
.channels = output->dims->data[3], 1
|
||||
.channels = output->dims->data[3], .extra = 1
|
||||
};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, .channels = 0, .extra = 0};
|
||||
conv_params_t conv_params = {
|
||||
.in_offset = 0, .out_offset = 0,
|
||||
.stride = {params.stride_width, params.stride_height},
|
||||
|
@ -209,13 +209,13 @@ inline void EvalQuantizedPerChannel(
|
|||
|
||||
data_dims_t input_dims = {
|
||||
.width = input_width, .height = input_height,
|
||||
.channels = input_depth, 1
|
||||
.channels = input_depth, .extra = 1
|
||||
};
|
||||
data_dims_t output_dims = {
|
||||
.width = output_width, .height = output_height,
|
||||
.channels = output_depth, 1
|
||||
.channels = output_depth, .extra = 1
|
||||
};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, .channels = 0, .extra = 0};
|
||||
conv_params_t conv_params = {
|
||||
.in_offset = input_offset, .out_offset = output_offset,
|
||||
.stride = {stride_width, stride_height},
|
||||
|
|
|
@ -118,13 +118,13 @@ inline void EvalQuantizedPerChannel(TfLiteContext* context, TfLiteNode* node,
|
|||
|
||||
data_dims_t input_dims = {
|
||||
.width = input_width, .height = input_height,
|
||||
.channels = input_depth, 1
|
||||
.channels = input_depth, .extra = 1
|
||||
};
|
||||
data_dims_t output_dims = {
|
||||
.width = output_width, .height = output_height,
|
||||
.channels = output_depth, 1
|
||||
.channels = output_depth, .extra = 1
|
||||
};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, .channels = 0, .extra = 0};
|
||||
dw_conv_params_t conv_params = {
|
||||
.in_offset = input_offset, .out_offset = output_offset,
|
||||
.ch_mult = depth_multiplier,
|
||||
|
@ -227,13 +227,13 @@ TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
|
|||
if (input->type == kTfLiteInt8) {
|
||||
data_dims_t input_dims = {
|
||||
.width = input_width, .height = input_height,
|
||||
.channels = input->dims->data[3], 1
|
||||
.channels = input->dims->data[3], .extra = 1
|
||||
};
|
||||
data_dims_t output_dims = {
|
||||
.width = output_width, .height = output_height,
|
||||
.channels = output->dims->data[3], 1
|
||||
.channels = output->dims->data[3], .extra = 1
|
||||
};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
|
||||
data_dims_t filter_dims = {.width = filter_width, .height = filter_height, .channels = 0, .extra = 0};
|
||||
dw_conv_params_t conv_params = {
|
||||
.in_offset = 0, .out_offset = 0,
|
||||
.ch_mult = params.depth_multiplier,
|
||||
|
|
Loading…
Reference in New Issue