public interface MLCustomLayer
| Modifier and Type | Method and Description |
|---|---|
default boolean |
encodeToCommandBufferInputsOutputsError(MTLCommandBuffer commandBuffer,
NSArray<?> inputs,
NSArray<?> outputs,
org.moe.natj.general.ptr.Ptr<NSError> error)
Optional selector for encoding a shader implementing the custom layer to a command buffer.
|
boolean |
evaluateOnCPUWithInputsOutputsError(NSArray<? extends MLMultiArray> inputs,
NSArray<? extends MLMultiArray> outputs,
org.moe.natj.general.ptr.Ptr<NSError> error)
For the given inputs, populate the provide output memory.
|
MLCustomLayer |
initWithParameterDictionaryError(NSDictionary<java.lang.String,?> parameters,
org.moe.natj.general.ptr.Ptr<NSError> error)
Initialize the custom layer implementation.
|
NSArray<? extends NSArray<? extends NSNumber>> |
outputShapesForInputShapesError(NSArray<? extends NSArray<? extends NSNumber>> inputShapes,
org.moe.natj.general.ptr.Ptr<NSError> error)
For the given input shapes, the implementation needs to return the output shape produced by this layer.
|
boolean |
setWeightDataError(NSArray<? extends NSData> weights,
org.moe.natj.general.ptr.Ptr<NSError> error)
The data encoded in the 'weights' field of the model specification will be loaded and made
available to the implementation here, with one entry of the array for each entry in the 'repeated'
weights field in the Core ML neural network specification .
|
default boolean encodeToCommandBufferInputsOutputsError(MTLCommandBuffer commandBuffer, NSArray<?> inputs, NSArray<?> outputs, org.moe.natj.general.ptr.Ptr<NSError> error)
boolean evaluateOnCPUWithInputsOutputsError(NSArray<? extends MLMultiArray> inputs, NSArray<? extends MLMultiArray> outputs, org.moe.natj.general.ptr.Ptr<NSError> error)
MLCustomLayer initWithParameterDictionaryError(NSDictionary<java.lang.String,?> parameters, org.moe.natj.general.ptr.Ptr<NSError> error)
NSArray<? extends NSArray<? extends NSNumber>> outputShapesForInputShapesError(NSArray<? extends NSArray<? extends NSNumber>> inputShapes, org.moe.natj.general.ptr.Ptr<NSError> error)
boolean setWeightDataError(NSArray<? extends NSData> weights, org.moe.natj.general.ptr.Ptr<NSError> error)