首页 > 解决方案 > Tensorflow Lite GPU 委托:错误:tensorflow/lite/core/subgraph.cc:1169 node_index >= 0 不正确

问题描述

我正在尝试使用 TFlite GPU 委托进行mobilbert TFlite 模型推理。我正在使用启用了 GPU 委托的 TFlite基准测试工具来运行模型。推理会自动转到 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 委托只支持少数模型操作。但是,在我看来,该错误不是支持问题,因为如果是这种情况,我应该只会收到一个警告,报告不支持的操作。

我不明白是什么node_index意思,是什么使它积极或消极。

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

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

标签: tensorflowdelegatestensorflow-litebert-language-model

解决方案


推荐阅读