首页 > 解决方案 > 如何在android studio中读取输出张量(tflite)

问题描述

我可以在 python 中获取形状并读取张量本身,但只能在 android tflite 中使用 tflite.getOutputTensor(0).shape() 和 tflite.getInputTensors(0).shape() 获取张量的形状。我在 python 中使用 .get_tensor(nodevalue) 读取张量,但我应该如何在 android 中执行此操作

我在 python 中的输入和输出张量

在 android studio 中只获取形状

标签: androidtensorflowtensorflow-lite

解决方案



推荐阅读