augmented_inputs.data(), static_cast<uint32_t>(node.outputs->size),
reinterpret_cast<uint32_t*>(node.outputs->data)));
continue;
+ case tflite::BuiltinOperator_TRANSPOSE_CONV:
+ add_transpose_conv_params(node.builtin_data);
+ CHECK_NN(ANeuralNetworksModel_addOperationEx(
+ nn_model, ANEURALNETWORKS_TRANSPOSE_CONV_EX,
+ static_cast<uint32_t>(augmented_inputs.size()),
+ augmented_inputs.data(), static_cast<uint32_t>(node.outputs->size),
+ reinterpret_cast<uint32_t*>(node.outputs->data)));
+ continue;
case tflite::BuiltinOperator_ARG_MAX:
CHECK_NN(ANeuralNetworksModel_addOperationEx(
nn_model, ANEURALNETWORKS_ARGMAX_EX,
case tflite::BuiltinOperator_SLICE:
case tflite::BuiltinOperator_SIN:
//case tflite::BuiltinOperator_LOG:
- case tflite::BuiltinOperator_TRANSPOSE_CONV:
+ //case tflite::BuiltinOperator_TRANSPOSE_CONV:
#ifndef OBS_BUILD
case tflite::BuiltinOperator_TILE:
case tflite::BuiltinOperator_EXPAND_DIMS:
}
};
+ auto add_transpose_conv_params = [&add_scalar_int32](void* data) {
+ auto builtin = reinterpret_cast<TfLiteTransposeConvParams*>(data);
+ add_scalar_int32(builtin->padding);
+ add_scalar_int32(builtin->stride_width);
+ add_scalar_int32(builtin->stride_height);
+ };
+
auto add_lrn_params = [&add_scalar_int32,
&add_scalar_float32](void* data) {
auto builtin = reinterpret_cast<TfLiteLocalResponseNormParams*>(data);