]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/dnn/dnn_backend_native_layer_conv2d.c
avfilter/dnn: get the data type of network output from dnn execution result
[ffmpeg] / libavfilter / dnn / dnn_backend_native_layer_conv2d.c
index 6ec0fa7a996c833788d8e4479029f10ed3625620..7b296979a9deeb8847546e7b25502b087e05d6b7 100644 (file)
@@ -106,6 +106,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_
     output_operand->dims[1] = height - pad_size * 2;
     output_operand->dims[2] = width - pad_size * 2;
     output_operand->dims[3] = conv_params->output_num;
+    output_operand->data_type = operands[input_operand_index].data_type;
     output_operand->length = calculate_operand_data_length(output_operand);
     output_operand->data = av_realloc(output_operand->data, output_operand->length);
     if (!output_operand->data)