tensorflow - 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 有关。有什么想法吗?
解决方案
推荐阅读
- mysql - WSL:无法通过套接字'/var/run/mysqld/mysqld.sock'连接到本地MySQL服务器(2)
- java - java.sql.SQLSyntaxErrorException: ORA-00936: 添加 TO_CHAR 后缺少表达式
- apache - 如何阻止来自我以外的域的请求?
- python - 将纪元时间(以毫秒为单位)转换为时间戳到 UTC 错误
- python - Numpy:将数组数据存储到文件
- python - psycopg2 查询可变长度值
- c# - c# - 如何使用 Linq 或其他方式从列表中删除匹配项
- python - 使用随机最大值/最小值替换空值
- python - Python scikit-learn 稀疏矩阵聚类
- python - 我正在尝试生成一行代码来返回单词的分数,但目前我遇到了错误