Tensorflow Lite .tflite 模型不工作 iOS 但在 android 上工作

Tensorflow Lite .tflite model not working iOS but works on android

android 中可用的 .tflite 模型不适用于 iOS 应用

它为 out

提供 NULL

uint8_t* out = interpreter->typed_tensor<uint8_t>(input);

请问out = NULL

有哪些可能性

我可以知道什么是 input 导致在 tensorflow-lite input = 88 上提供的示例的原因,我得到 输入=27

int input = interpreter->inputs()[0];

我已经解决了这个问题,即使用 float 而不是 uint8_t

float* out = interpreter->typed_tensor<float>(input);

不过还在等这个问题的答案

May I know whats input cause for the example provided on tensorflow-lite the input = 88 and I'm getting input = 27

int input = interpreter->inputs()[0];