Reputation: 11
2017-08-01 10:10:55.446771: E tensorflow/core/common_runtime/session.cc:69] Not found: No session factory registered for the given session options: {target: "" config: } Registered factories are {}. 2017-08-01 10:10:55.446878: E /Users/JamesLing/Desktop/transform/tensorflow_ios_demo/tensorflow_utils.mm:129] Could not create TensorFlow Session: Not found: No session factory registered for the given session options: {target: "" config: } Registered factories are {}.
Upvotes: 0
Views: 1338
Reputation: 2878
You need to supply the -force_load=(your tensorflow lib) flag as "Other Linker Flags" in Xcode. I have a detailed explanation for why at this point in a TF Dev Summit talk:
https://youtu.be/0r9w3V923rk?t=20m3s
Upvotes: 2