NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPSNDArrayDescriptor(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MPSNDArrayDescriptor |
alloc() |
static MPSNDArrayDescriptor |
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() |
int |
dataType()
Data Type of the MPSNDArray elements
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static MPSNDArrayDescriptor |
descriptorWithDataTypeDimensionCountDimensionSizes(int dataType,
long numberOfDimensions,
org.moe.natj.general.ptr.NUIntPtr dimensionSizes)
Create an MPSNDArrayDescriptor object for a given size of dimensions.
|
static MPSNDArrayDescriptor |
descriptorWithDataTypeDimensionSizes(int dataType,
long dimension0,
java.lang.Object... varargs)
Create an MPSNDArrayDescriptor object for a given size of dimensions.
|
static MPSNDArrayDescriptor |
descriptorWithDataTypeShape(int dataType,
NSArray<? extends NSNumber> shape)
A convenience function to create an MPSNDArrayDescriptor object for a given size of dimensions.
|
static long |
hash_static() |
MPSNDArrayDescriptor |
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) |
long |
lengthOfDimension(long dimensionIndex)
The number of elements of type dataType in the indicated dimension.
|
static MPSNDArrayDescriptor |
new_objc() |
long |
numberOfDimensions()
The number of dimensions in the NDArray.
|
void |
reshapeWithDimensionCountDimensionSizes(long numberOfDimensions,
org.moe.natj.general.ptr.NUIntPtr dimensionSizes)
Changes dimension sizes and number of dimensions on the current descriptor
|
void |
reshapeWithShape(NSArray<? extends NSNumber> shape)
Changes dimension sizes and number of dimensions on the current descriptor
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDataType(int value)
Data Type of the MPSNDArray elements
|
void |
setNumberOfDimensions(long value)
The number of dimensions in the NDArray.
|
static void |
setVersion_static(long aVersion) |
void |
sliceDimensionWithSubrange(long dimensionIndex,
MPSDimensionSlice subRange)
The slice dimensions for each dimension
[@discusion] A slice is a subregion of a dimension.
|
MPSDimensionSlice |
sliceRangeForDimension(long dimensionIndex)
The slice dimensions for each dimension
[@discusion] A slice is a subregion of a dimension.
|
static org.moe.natj.objc.Class |
superclass_static() |
void |
transposeDimensionWithDimension(long dimensionIndex,
long dimensionIndex2)
transpose two dimensions
[@discusion] If the intention is to insert a length 1 dimension, increment the numberOfDimensions first.
|
static long |
version_static() |
accessibilityActivate, 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 MPSNDArrayDescriptor(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPSNDArrayDescriptor alloc()
public static MPSNDArrayDescriptor 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 int dataType()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static MPSNDArrayDescriptor descriptorWithDataTypeDimensionCountDimensionSizes(int dataType, long numberOfDimensions, org.moe.natj.general.ptr.NUIntPtr dimensionSizes)
Sample code: [@code] // Creates an NDArrayDescriptor of dimensions [32, 6, 5, 3] NSUInteger sizes[] = {3,5,6,32}; [ MPSNDArray descriptorWithDataType: MPSDataTypeFloat32 dimensionCount: 4 dimensionSizes: sizes ]; // array of numberOfDimensions dimensions. Starts with dimension 0 [@endcode]
dataType - MPSDataType of elements in the MPSNDArraynumberOfDimensions - Number of dimensions in the NDArray. May not exceed 16.dimensionSizes - An array of NSUIntegers where dimension lengths provided by the user goes from fastest
moving to slowest moving dimension.
The product of all dimension lengths must be less than 2**31.
Additional system memory limits may applypublic static MPSNDArrayDescriptor descriptorWithDataTypeDimensionSizes(int dataType, long dimension0, java.lang.Object... varargs)
Sample code: [@code] // Creates an NDArrayDescriptor of dimensions [32, 5, 6, 3] [ MPSNDArray descriptorWithDataType: MPSDataTypeFloat32 dimensionSizes: 3, 6, 5, 32, 0 //<--list terminator! ]; // array of numberOfDimensions dimensions. Starts with dimension 0 [@endcode]
dataType - MPSDataType of elements in the MPSNDArraydimension0 - The start of a 0-terminated variadric list of NSUIntegers where dimension lengths provided by the user goes from fastest
moving to slowest moving dimension.
The product of all dimension sizes must be less than 2**31.
Additional system memory limits may applypublic static MPSNDArrayDescriptor descriptorWithDataTypeShape(int dataType, NSArray<? extends NSNumber> shape)
Sample code:
[@code]
// Creates an NDArrayDescriptor of dimensions [32, 6, 5, 3]
NSArray
dataType - MPSDataType of elements in the MPSNDArrayshape - An array of NSUIntegers where dimension lengths provided by the user goes from slowest
moving to fastest moving dimension. This is same order as MLMultiArray in coreML and most frameworks in Python
The product of all dimension lengths must be less than 2**31.
Additional system memory limits may applypublic static long hash_static()
public MPSNDArrayDescriptor 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 long lengthOfDimension(long dimensionIndex)
If dimensionIndex >= numberOfDimensions, 1 will be returned.
dimensionIndex - dimension the MPSNDArray for which to return the lengthpublic static MPSNDArrayDescriptor new_objc()
public long numberOfDimensions()
May not exceed 16. A 0-diumension MPSNDArray is a single scalar value. Undefined dimensions are implicitly length 1.
public void reshapeWithDimensionCountDimensionSizes(long numberOfDimensions,
org.moe.natj.general.ptr.NUIntPtr dimensionSizes)
numberOfDimensions - Number of dimensions in the NDArray. May not exceed 16.dimensionSizes - An array of NSUIntegers where dimension lengths provided by the user goes from fastest
moving to slowest moving dimension.
The product of all dimension lengths must be less than 2**31.
Additional system memory limits may applypublic void reshapeWithShape(NSArray<? extends NSNumber> shape)
shape - An array of NSUIntegers where dimension lengths provided by the user goes from slowest
moving to fastest moving dimension. This is same order as MLMultiArray in coreML and most frameworks in Python
The product of all dimension lengths must be less than 2**31.
Additional system memory limits may applypublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setDataType(int value)
public void setNumberOfDimensions(long value)
May not exceed 16. A 0-diumension MPSNDArray is a single scalar value. Undefined dimensions are implicitly length 1.
public static void setVersion_static(long aVersion)
public void sliceDimensionWithSubrange(long dimensionIndex,
MPSDimensionSlice subRange)
Default: NSRange(0, lengthOfDimension(i))
subRange - The region of the slice, start value is wrt dimensionLength of the NDArray.dimensionIndex - The index of the dimension. Must be < numberOfDimensionspublic MPSDimensionSlice sliceRangeForDimension(long dimensionIndex)
dimensionIndex - The index of the dimensionpublic static org.moe.natj.objc.Class superclass_static()
public void transposeDimensionWithDimension(long dimensionIndex,
long dimensionIndex2)
dimensionIndex - The first dimension. Must be < numberOfDimensionsdimensionIndex2 - The second dimension. Must be < number of Dimensions.public static long version_static()