I am really new to Coreml and Metal.
Now I am working on a project testing performance of Core Ml model. I implemented a CNN model based on tensorflow and convert this model to .mlmodel using tf-coreml tool.
But in my CNN model, it has an op named 'equal', which Coreml does not support. It converted into a custom layer of .mlmodel my .mlmodel file screen shot
Then I followed Hollemans amazing blog http://machinethink.net/blog/coreml-custom-layers/ to implement this custom layer on both CPU and GPU. My Cpu version works good, but when I implemented this op on GPU it cannot activate "encode function". I followed all steps in Hollemans's Blog creating the Metal compute kernels and the rest. But when I run my project, it always run on CPU. It seemed never get into Encode function.only run on evaluate function
I searched a lot on google but did not find an ideal answer, that really made me frustrated. If anyone has any hints, I will really appreciate. Thanks in advance.