| Modifier and Type | Class and Description |
|---|---|
static interface |
MLCInferenceGraph.Block_executeWithInputsDataBatchSizeOptionsCompletionHandler |
static interface |
MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataBatchSizeOptionsCompletionHandler |
static interface |
MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataOutputsDataBatchSizeOptionsCompletionHandler |
static interface |
MLCInferenceGraph.Block_executeWithInputsDataOutputsDataBatchSizeOptionsCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MLCInferenceGraph(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
boolean |
addInputs(NSDictionary<java.lang.String,? extends MLCTensor> inputs)
Add the list of inputs to the inference graph
|
boolean |
addInputsLossLabelsLossLabelWeights(NSDictionary<java.lang.String,? extends MLCTensor> inputs,
NSDictionary<java.lang.String,? extends MLCTensor> lossLabels,
NSDictionary<java.lang.String,? extends MLCTensor> lossLabelWeights)
Add the list of inputs to the inference graph
|
boolean |
addOutputs(NSDictionary<java.lang.String,? extends MLCTensor> outputs)
Add the list of outputs to the inference graph
|
static MLCInferenceGraph |
alloc() |
static MLCInferenceGraph |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
boolean |
compileWithOptionsDevice(long options,
MLCDevice device)
Compile the training graph for a device.
|
boolean |
compileWithOptionsDeviceInputTensorsInputTensorsData(long options,
MLCDevice device,
NSDictionary<java.lang.String,? extends MLCTensor> inputTensors,
NSDictionary<java.lang.String,? extends MLCTensorData> inputTensorsData)
Compile the inference graph for a device.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
long |
deviceMemorySize()
[@property] The device memory size used by the inference graph
|
boolean |
executeWithInputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData,
long batchSize,
long options,
MLCInferenceGraph.Block_executeWithInputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph with given input data
|
boolean |
executeWithInputsDataLossLabelsDataLossLabelWeightsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData,
NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelsData,
NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelWeightsData,
long batchSize,
long options,
MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph with given input data
|
boolean |
executeWithInputsDataLossLabelsDataLossLabelWeightsDataOutputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData,
NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelsData,
NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelWeightsData,
NSDictionary<java.lang.String,? extends MLCTensorData> outputsData,
long batchSize,
long options,
MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataOutputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph with given input data
|
boolean |
executeWithInputsDataOutputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData,
NSDictionary<java.lang.String,? extends MLCTensorData> outputsData,
long batchSize,
long options,
MLCInferenceGraph.Block_executeWithInputsDataOutputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph with given input data
|
static MLCInferenceGraph |
graph() |
static MLCInferenceGraph |
graphWithGraphObjects(NSArray<? extends MLCGraph> graphObjects)
Create an inference graph
|
static long |
hash_static() |
MLCInferenceGraph |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
linkWithGraphs(NSArray<? extends MLCInferenceGraph> graphs)
Link mutiple inference graphs
|
static MLCInferenceGraph |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
bindAndWriteDataForInputsToDeviceBatchSizeSynchronous, bindAndWriteDataForInputsToDeviceSynchronous, concatenateWithSourcesDimension, device, gatherWithDimensionSourceIndices, layers, nodeWithLayerSource, nodeWithLayerSources, nodeWithLayerSourcesDisableUpdate, nodeWithLayerSourcesLossLabels, reshapeWithShapeSource, resultTensorsForLayer, scatterWithDimensionSourceIndicesCopyFromReductionType, selectWithSourcesCondition, sourceTensorsForLayer, splitWithSourceSplitCountDimension, splitWithSourceSplitSectionLengthsDimension, summarizedDOTDescription, transposeWithDimensionsSourceaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public boolean addInputs(NSDictionary<java.lang.String,? extends MLCTensor> inputs)
inputs - The inputspublic boolean addInputsLossLabelsLossLabelWeights(NSDictionary<java.lang.String,? extends MLCTensor> inputs, NSDictionary<java.lang.String,? extends MLCTensor> lossLabels, NSDictionary<java.lang.String,? extends MLCTensor> lossLabelWeights)
Each input, loss label or label weights tensor is identified by a NSString. When the inference graph is executed, this NSString is used to identify which data object should be as input data for each tensor whose device memory needs to be updated before the graph is executed.
inputs - The inputslossLabels - The loss label inputslossLabelWeights - The loss label weightspublic boolean addOutputs(NSDictionary<java.lang.String,? extends MLCTensor> outputs)
outputs - The outputspublic static MLCInferenceGraph alloc()
public static MLCInferenceGraph allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public boolean compileWithOptionsDevice(long options,
MLCDevice device)
options - The compiler options to use when compiling the training graphdevice - The MLCDevice objectpublic boolean compileWithOptionsDeviceInputTensorsInputTensorsData(long options,
MLCDevice device,
NSDictionary<java.lang.String,? extends MLCTensor> inputTensors,
NSDictionary<java.lang.String,? extends MLCTensorData> inputTensorsData)
Specifying the list of constant tensors when we compile the graph allows MLCompute to perform additional optimizations at compile time.
options - The compiler options to use when compiling the inference graphdevice - The MLCDevice objectinputTensors - The list of input tensors that are constantsinputTensorsData - The tensor data to be used with these constant input tensorspublic static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public long deviceMemorySize()
Returns the total size in bytes of device memory used by all intermediate tensors in the inference graph
public boolean executeWithInputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData, long batchSize, long options, MLCInferenceGraph.Block_executeWithInputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph given input data. If MLCExecutionOptionsSynchronous is specified in 'options', this method returns after the graph has been executed. Otherwise, this method returns after the graph has been queued for execution. The completion handler is called after the graph has finished execution.
inputsData - The data objects to use for inputsbatchSize - The batch size to use. For a graph where batch size changes between layers this value must be 0.options - The execution optionscompletionHandler - The completion handlerpublic boolean executeWithInputsDataLossLabelsDataLossLabelWeightsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData, NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelsData, NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelWeightsData, long batchSize, long options, MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph given input data. If MLCExecutionOptionsSynchronous is specified in 'options', this method returns after the graph has been executed. Otherwise, this method returns after the graph has been queued for execution. The completion handler is called after the graph has finished execution.
inputsData - The data objects to use for inputslossLabelsData - The data objects to use for loss labelslossLabelWeightsData - The data objects to use for loss label weightsbatchSize - The batch size to use. For a graph where batch size changes between layers this value must be 0.options - The execution optionscompletionHandler - The completion handlerpublic boolean executeWithInputsDataLossLabelsDataLossLabelWeightsDataOutputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData, NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelsData, NSDictionary<java.lang.String,? extends MLCTensorData> lossLabelWeightsData, NSDictionary<java.lang.String,? extends MLCTensorData> outputsData, long batchSize, long options, MLCInferenceGraph.Block_executeWithInputsDataLossLabelsDataLossLabelWeightsDataOutputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph given input data. If MLCExecutionOptionsSynchronous is specified in 'options', this method returns after the graph has been executed. Otherwise, this method returns after the graph has been queued for execution. The completion handler is called after the graph has finished execution.
inputsData - The data objects to use for inputslossLabelsData - The data objects to use for loss labelslossLabelWeightsData - The data objects to use for loss label weightsoutputsData - The data objects to use for outputsbatchSize - The batch size to use. For a graph where batch size changes between layers this value must be 0.options - The execution optionscompletionHandler - The completion handlerpublic boolean executeWithInputsDataOutputsDataBatchSizeOptionsCompletionHandler(NSDictionary<java.lang.String,? extends MLCTensorData> inputsData, NSDictionary<java.lang.String,? extends MLCTensorData> outputsData, long batchSize, long options, MLCInferenceGraph.Block_executeWithInputsDataOutputsDataBatchSizeOptionsCompletionHandler completionHandler)
Execute the inference graph given input data. If MLCExecutionOptionsSynchronous is specified in 'options', this method returns after the graph has been executed. Otherwise, this method returns after the graph has been queued for execution. The completion handler is called after the graph has finished execution.
inputsData - The data objects to use for inputsoutputsData - The data objects to use for outputsbatchSize - The batch size to use. For a graph where batch size changes between layers this value must be 0.options - The execution optionscompletionHandler - The completion handlerpublic static MLCInferenceGraph graph()
public static MLCInferenceGraph graphWithGraphObjects(NSArray<? extends MLCGraph> graphObjects)
graphObjects - The layers from these graph objects will be added to the training graphpublic static long hash_static()
public MLCInferenceGraph init()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public boolean linkWithGraphs(NSArray<? extends MLCInferenceGraph> graphs)
This is used to link subsequent inference graphs with first inference sub-graph. This method should be used when we have tensors shared by one or more layers in multiple sub-graphs
graphs - The list of inference graphs to linkpublic static MLCInferenceGraph new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()