微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。