coremltools
coremltools copied to clipboard
Conversion for op All not implemented
There is a function - reduce all in tensorflow, which performs "Logical AND" of all elements across some dimension. Is there any way to get it working with CoreML3 other than waiting for custom layers support?
Yes, you can use reduceProd layer. In CoreML, absolute of any value > 1e-6 is considered True, which makes this layer functionally similar to reduce_all.
https://github.com/apple/coremltools/blob/9f6cb1ead26b9b7dd021e3a501eba82c23fe5596/mlmodel/format/NeuralNetwork.proto#L4722