Evaluates the custom layer with the given inputs.
- iOS 11.2+
- macOS 10.13.2+
- UIKit for Mac 13.0+Beta
- tvOS 11.2+
- watchOS 4.2+
- Core ML
The array of inputs to be evaluated.
The array of outputs to be populated by evaluating the given inputs.
Implement this method to evaluate the inputs using your layer's custom behavior and to populate the output arrays. It will be called for each evaluation of your model performed on the CPU.
The memory for both input and output arrays is preallocated; don't copy or move it. The inputs and outputs will have the shapes of the most recent call to
output. Don't modify the input values.
Investigate vecLib for methods that could optimize your implementation significantly.