Quiere convertir una matriz numpy en un objeto tensor en Python de MNN
MNN.Tensor((1,224, 224,3), MNN.Halide_Type_Float,image,MNN.Tensor_DimensionType_Tensorflow)
Pero apareció
terminate called after throwing an instance of 'std::runtime_error'
what(): numpy type does not match
Aborted (core dumped)
La razón es que el tipo de datos es incorrecto, porque los datos del tipo uint8 contenidos en la imagen no coinciden
El correcto debería ser el siguiente:
MNN.Tensor((1,224, 224,3), MNN.Halide_Type_Uint8,image,MNN.Tensor_DimensionType_Tensorflow)