Package org.robovm.apple.mlcompute
Class MLCInferenceGraph
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.mlcompute.MLCGraph
org.robovm.apple.mlcompute.MLCInferenceGraph
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class MLCInferenceGraph extends MLCGraph
- Since:
- Available in iOS 14.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMLCInferenceGraph.MLCInferenceGraphPtrNested classes/interfaces inherited from class org.robovm.apple.mlcompute.MLCGraph
MLCGraph.MLCGraphPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedMLCInferenceGraph()MLCInferenceGraph(NSArray<MLCGraph> graphObjects)protectedMLCInferenceGraph(NSObject.Handle h, long handle)protectedMLCInferenceGraph(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.mlcompute.MLCGraph
bindAndWriteData, bindAndWriteData, concatenate, gather, getDevice, getLayers, getSummarizedDOTDescription, node, node, node, node, reshape, resultTensorsForLayer, scatter, select, sourceTensorsForLayer, split, split, transposeMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
MLCInferenceGraph
protected MLCInferenceGraph() -
MLCInferenceGraph
-
MLCInferenceGraph
-
MLCInferenceGraph
-
-
Method Details
-
getDeviceMemorySize
public long getDeviceMemorySize() -
addInputs
-
addInputs
public boolean addInputs(NSDictionary<NSString,MLCTensor> inputs, NSDictionary<NSString,MLCTensor> lossLabels, NSDictionary<NSString,MLCTensor> lossLabelWeights) -
addOutputs
-
compile
-
compile
public boolean compile(MLCGraphCompilationOptions options, MLCDevice device, NSDictionary<NSString,MLCTensor> inputTensors, NSDictionary<NSString,MLCTensorData> inputTensorsData)- Since:
- Available in iOS 14.5 and later.
-
link
-
execute
public boolean execute(NSDictionary<NSString,MLCTensorData> inputsData, long batchSize, MLCExecutionOptions options, VoidBlock3<MLCTensor,NSError,Double> completionHandler) -
execute
public boolean execute(NSDictionary<NSString,MLCTensorData> inputsData, NSDictionary<NSString,MLCTensorData> outputsData, long batchSize, MLCExecutionOptions options, VoidBlock3<MLCTensor,NSError,Double> completionHandler) -
execute
public boolean execute(NSDictionary<NSString,MLCTensorData> inputsData, NSDictionary<NSString,MLCTensorData> lossLabelsData, NSDictionary<NSString,MLCTensorData> lossLabelWeightsData, long batchSize, MLCExecutionOptions options, VoidBlock3<MLCTensor,NSError,Double> completionHandler) -
execute
public boolean execute(NSDictionary<NSString,MLCTensorData> inputsData, NSDictionary<NSString,MLCTensorData> lossLabelsData, NSDictionary<NSString,MLCTensorData> lossLabelWeightsData, NSDictionary<NSString,MLCTensorData> outputsData, long batchSize, MLCExecutionOptions options, VoidBlock3<MLCTensor,NSError,Double> completionHandler) -
create
-
graph
-