infocom-tpo/PoseNet-Unity

Encounter crashes when running on iOS

Opened this issue · 2 comments

Testing environment
Unity: 2018.1.6f1
Xcode: 9.4.1
iOS: 11.3.1

Here is the error log:
2018-07-04 10:18:34.357137: F tensorflow/core/graph/graph.cc:284] Non-OK-status: status status: Not found: Op type not registered 'NoOp' in binary running on XXX-Phone. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be donebefore importing the graph, as contrib ops are lazily registered when the module is first accessed.

Would you know how to solve it?

Thank you!

Hi.
I also tried it on iOS but failed to initialize TFGraph of TensorFlowSharp.
I am waiting for the problem to be solved in the original community.

What is the original community?
TensorFlowSharp does not create a package for iOS.
For iOS, it is a package created by ml-agents.
This problem is waiting to be solved in the ml-agents community.
Thank.

@archerfob
In Build Settings > Linking > Other Linker Flags:
Double click on the flag list to expand the list
Add -force_load
Drag the library libtensorflow-core.a from the Project Navigator on the left under Libraries/ML-Agents/Plugins/iOS into the flag list, after -force_load.

https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Using-TensorFlow-Sharp-in-Unity.md