Tensorflow Lite GPU 委托:错误:tensorflow/lite/core/subgraph.cc:1169 node_index >= 0 不正确

问题描述

我正在尝试使用 TFlite GPU 委托进行 mobilbert TFlite 模型推理。我正在使用 TFlite benchmark 工具并启用 GPU 委托来运行模型。推理自动进入 cpu 后端,并显示以下信息/错误

INFO: Created TensorFlow Lite delegate for GPU.
ERROR: tensorflow/lite/core/subgraph.cc:1169 node_index >= 0 was not true.
ERROR: Couldn't get node and registration info for op: -1793924896

INFO: Created 0 GPU delegate kernels.
Though GPU delegate is explicitly applied,the model graph will not be executed by the delegate.

然后继续在 cpu 上运行。

我不确定这个错误是什么意思。我知道 TFlite GPU 委托只支持少数 modelsoperations。但是,该错误在我看来并不是支持问题,因为如果是这种情况,我应该只会收到一个 warning 报告不支持的操作。

我不明白 node_index 是什么意思,以及它是什么意思,什么是肯定的或否定的。

我应该注意到他们支持的模型运行完美,没有错误

我推测这首先与模型如何转换为 TFlite 有关。有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)