我开发了一款应用,该应用使用 Metal 性能着色器根据 TensorFlow 训练模型计算机器学习预测。该应用程序在前台运行良好,但在后台出现错误:
“由于执行期间发生错误,命令缓冲区的执行被中止。权限不足(从后台提交 GPU 工作)(IOAF 代码 6)”
我们如何在后台模式下启用 GPU 处理?
最佳答案
这目前是不可能的。来自documentation :
A Metal app cannot execute Metal commands in the background [...]
关于ios - 如何解决Insufficient Permission (to submit GPU work from background) (IOAF code 6)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43680239/