Generally speaking, what is the custom layer support for iPhone? Can we insert a single layer in the
middle of a net?
Using custom layers is resulting in zero shapes during the init call of the mlmodel, resulting in an
exception. I am using Xcode 10.1. Works fine with the simulator XS Max, but as soon as I try it on an
actual XS Max, this exception occurs.
Steps to Reproduce: Add any custom layer to a net. Use the environment above on an XS Max.
Unsure if this is specific to Xcode, SDK, or phone.
Expected Results: The init completes without an exception.
(When I remove the custom layers, only the first 3 lines appear.)
2018-12-06 11:51:50.379147-0800 MyApp[824:140882] [DYMTLInitPlatform] platform initialization successful
2018-12-06 11:51:50.548854-0800 MyApp[824:140808] Metal GPU Frame Capture Enabled
2018-12-06 11:51:50.549081-0800 MyApp[824:140808] Metal API Validation Enabled
2018-12-06 11:51:50.664385-0800 MyApp[824:140808] [espresso] [Espresso::handle_ex_plan] exception=Zero shape error
2018-12-06 11:51:50.665249-0800 MyApp[824:140808] [coreml] Error in adding network -1.
2018-12-06 11:51:50.665421-0800 MyApp[824:140808] [coreml] MLModelAsset: load failed with error Error Domain=com.apple.CoreML Code=0 "Error in declaring network." UserInfo={NSLocalizedDescription=Error in declaring network.}
2018-12-06 11:51:50.665471-0800 MyApp[824:140808] [coreml] MLModelAsset: modelWithError: load failed with error Error Domain=com.apple.CoreML Code=0 "Error in declaring network." UserInfo={NSLocalizedDescription=Error in declaring network.} (lldb)