public class MPSNDArrayBinaryKernel extends MPSNDArrayMultiaryKernel
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPSNDArrayBinaryKernel(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static MPSNDArrayBinaryKernel |
alloc() |
static MPSNDArrayBinaryKernel |
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() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
MPSNDArray |
encodeToCommandBufferPrimarySourceArraySecondarySourceArray(MTLCommandBuffer cmdBuf,
MPSNDArray primarySourceArray,
MPSNDArray secondarySourceArray)
Inference encode calls
|
void |
encodeToCommandBufferPrimarySourceArraySecondarySourceArrayDestinationArray(MTLCommandBuffer cmdBuf,
MPSNDArray primarySourceArray,
MPSNDArray secondarySourceArray,
MPSNDArray destination)
Encode a simple inference NDArray kernel and return a NDArray to hold the result
|
void |
encodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateDestinationArray(MTLCommandBuffer cmdBuf,
MPSNDArray primarySourceArray,
MPSNDArray secondarySourceArray,
MPSState outGradientState,
MPSNDArray destination)
Encode a simple inference NDArray kernel and return a NDArray to hold the result
|
MPSNDArray |
encodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(MTLCommandBuffer cmdBuf,
MPSNDArray primarySourceArray,
MPSNDArray secondarySourceArray,
org.moe.natj.general.ptr.Ptr<MPSState> outGradientState,
boolean outputStateIsTemporary)
Forward training encode calls
|
static long |
hash_static() |
MPSNDArrayBinaryKernel |
init() |
MPSNDArrayBinaryKernel |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
MPSNDArrayBinaryKernel |
initWithCoderDevice(NSCoder coder,
java.lang.Object device)
NSSecureCoding support
|
MPSNDArrayBinaryKernel |
initWithDevice(java.lang.Object device)
Standard init with default properties per filter type
|
MPSNDArrayBinaryKernel |
initWithDeviceSourceCount(MTLDevice device,
long count)
Initialize a MPSNDArrayMultiaryKernel
|
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) |
static MPSNDArrayBinaryKernel |
new_objc() |
MPSNDArraySizes |
primaryDilationRates()
[@property] primaryDilationRate
|
long |
primaryEdgeMode()
[@property] primaryEdgeMode
|
MPSNDArraySizes |
primaryKernelSizes()
[@property] primaryKernelSizes
|
MPSNDArrayOffsets |
primaryOffsets()
[@property] primaryOffsets
|
MPSNDArrayOffsets |
primaryStrides()
[@property] primaryStrides
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
MPSNDArraySizes |
secondaryDilationRates()
[@property] secondaryDilationRate
|
long |
secondaryEdgeMode()
[@property] secondaryEdgeMode
|
MPSNDArraySizes |
secondaryKernelSizes()
[@property] secondaryKernelSizes
|
MPSNDArrayOffsets |
secondaryOffsets()
[@property] secondaryOffsets
|
MPSNDArrayOffsets |
secondaryStrides()
[@property] secondaryStrides
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
encodeToCommandBufferSourceArrays, encodeToCommandBufferSourceArraysDestinationArray, encodeToCommandBufferSourceArraysResultStateDestinationArray, encodeToCommandBufferSourceArraysResultStateOutputStateIsTemporarycopyWithZoneDevice, destinationArrayAllocator, destinationArrayDescriptorForSourceArraysSourceState, dilationRatesForSourceIndex, edgeModeAtSourceIndex, encodeWithCoder, kernelSizesForSourceIndex, offsetsAtSourceIndex, resultStateForSourceArraysSourceStatesDestinationArray, setDestinationArrayAllocator, stridesForSourceIndexcopyWithZone, device, label, options, setLabel, setOptionsaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected MPSNDArrayBinaryKernel(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPSNDArrayBinaryKernel alloc()
public static MPSNDArrayBinaryKernel 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 static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public MPSNDArray encodeToCommandBufferPrimarySourceArraySecondarySourceArray(MTLCommandBuffer cmdBuf, MPSNDArray primarySourceArray, MPSNDArray secondarySourceArray)
Encode a simple inference NDArray kernel and return a NDArray to hold the result
cmdBuf - The command buffer into which to encode the kernelprimarySourceArray - The primary source for the filter in an NSArray.secondarySourceArray - The secondary source for the filter in an NSArray.public void encodeToCommandBufferPrimarySourceArraySecondarySourceArrayDestinationArray(MTLCommandBuffer cmdBuf, MPSNDArray primarySourceArray, MPSNDArray secondarySourceArray, MPSNDArray destination)
cmdBuf - The command buffer into which to encode the kernelprimarySourceArray - The primary source for the filter in an NSArray.secondarySourceArray - The secondary source for the filter in an NSArray.destination - The NDArray to receive the resultpublic void encodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateDestinationArray(MTLCommandBuffer cmdBuf, MPSNDArray primarySourceArray, MPSNDArray secondarySourceArray, MPSState outGradientState, MPSNDArray destination)
cmdBuf - The command buffer into which to encode the kernelprimarySourceArray - The primary source for the filter in an NSArray.secondarySourceArray - The secondary source for the filter in an NSArray.outGradientState - The output gradient state to record the operation for later use by gradientdestination - A destination array to contain the result of the calculation
when the command buffer completes successfully.public MPSNDArray encodeToCommandBufferPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(MTLCommandBuffer cmdBuf, MPSNDArray primarySourceArray, MPSNDArray secondarySourceArray, org.moe.natj.general.ptr.Ptr<MPSState> outGradientState, boolean outputStateIsTemporary)
Encode a simple inference NDArray kernel and return a NDArray to hold the result
cmdBuf - The command buffer into which to encode the kernelprimarySourceArray - The primary source for the filter in an NSArray.secondarySourceArray - The secondary source for the filter in an NSArray.outGradientState - If non-nil, the address output gradient state is written to this addressoutputStateIsTemporary - If YES, the state if any will be allocated to contain temporary textures and buffers as neededpublic static long hash_static()
public MPSNDArrayBinaryKernel init()
init in class MPSNDArrayMultiaryKernelpublic MPSNDArrayBinaryKernel initWithCoder(NSCoder aDecoder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class MPSNDArrayMultiaryKernelpublic MPSNDArrayBinaryKernel initWithCoderDevice(NSCoder coder, java.lang.Object device)
initWithCoderDevice in class MPSNDArrayMultiaryKernelcoder - The NSCoder that contains the serialized objectdevice - The device on which the kernel will runpublic MPSNDArrayBinaryKernel initWithDevice(java.lang.Object device)
MPSKernelinitWithDevice in class MPSNDArrayMultiaryKerneldevice - The device that the filter will be used on. May not be NULL.public MPSNDArrayBinaryKernel initWithDeviceSourceCount(MTLDevice device, long count)
MPSNDArrayMultiaryBaseinitWithDeviceSourceCount in class MPSNDArrayMultiaryKerneldevice - The device on which the kernel will runcount - The maximum number of NDArrays read by the kernelpublic 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 static MPSNDArrayBinaryKernel new_objc()
public MPSNDArraySizes primaryDilationRates()
The stride in each dimension from one PSF tap to an adjacent PSF tap. Default: 1
public long primaryEdgeMode()
The edge mode used for a source NDArray Default: MPSImageEdgeModeZero
public MPSNDArraySizes primaryKernelSizes()
The diameters of the point spread function in each dimension for a source NDArray Default: 1
public MPSNDArrayOffsets primaryOffsets()
The coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension. Default: 0,0,0...
public MPSNDArrayOffsets primaryStrides()
If the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result. Default: 1
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public MPSNDArraySizes secondaryDilationRates()
The stride in each dimension from one PSF tap to an adjacent PSF tap. Default: 1
public long secondaryEdgeMode()
The edge mode used for a source NDArray Default: MPSImageEdgeModeZero
public MPSNDArraySizes secondaryKernelSizes()
The diameters of the point spread function in each dimension for a source NDArray Default: 1
public MPSNDArrayOffsets secondaryOffsets()
The coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension. Default: 0,0,0...
public MPSNDArrayOffsets secondaryStrides()
If the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result. Default: 1
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class MPSNDArrayMultiaryKernelpublic static long version_static()