Class MPSMatrixCopyDescriptor

  • All Implemented Interfaces:
    NSObject

    public class MPSMatrixCopyDescriptor
    extends NSObject
    A list of copy operations The MPSMatrixCopy filter can do multiple copy operations. For RNN filters, these copies are often small, and are more efficient when grouped together. The MPSMatriceCopyDescriptor provides a container to list the operations. The operations occur in any order, and may not alias.
    • Constructor Detail

      • MPSMatrixCopyDescriptor

        protected MPSMatrixCopyDescriptor​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithDeviceCount

        public MPSMatrixCopyDescriptor initWithDeviceCount​(MTLDevice device,
                                                           long count)
        initialize a MPSMatrixCopyDescriptor with default values. Use -setCopyOperationAtIndex:sourceMatrix:destinationMatrix:copyOffsets to initialize. All indices must be initialized before use.
        Parameters:
        device - The device on which the copy will be performed
        count - The number of copy operations the object will encode
        Returns:
        A MPSMatrixCopyDescriptor. It still needs to be initialized with -setCopyOperationAtIndex:sourceMatrix:destinationMatrix:copyOffsets
      • initWithSourceMatricesDestinationMatricesOffsetVectorOffset

        public MPSMatrixCopyDescriptor initWithSourceMatricesDestinationMatricesOffsetVectorOffset​(NSArray<? extends MPSMatrix> sourceMatrices,
                                                                                                   NSArray<? extends MPSMatrix> destinationMatrices,
                                                                                                   MPSVector offsets,
                                                                                                   long byteOffset)
        Initialize a MPSMatrixCopyDescriptor using offsets generated on the GPU Use this method when the offsets needed are coming from GPU based computation.
        Parameters:
        sourceMatrices - A list of matrices from which the matrix data is read
        destinationMatrices - A list of matrices to which to write the data. The count must match the number of source matrices.
        offsets - A MPSVector of type MPSDataTypeUInt32 containing the list of offsets, stored as a packed array of MPSMatrixCopyOffsets.
        byteOffset - A byte offset into the offsets vector where the data starts in 'offsets'. This value must be a multiple of 16.
        Returns:
        A valid MPSMatrixCopyDescriptor to represent the list of copy operations
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setCopyOperationAtIndexSourceMatrixDestinationMatrixOffsets

        public void setCopyOperationAtIndexSourceMatrixDestinationMatrixOffsets​(long index,
                                                                                MPSMatrix sourceMatrix,
                                                                                MPSMatrix destinationMatrix,
                                                                                MPSMatrixCopyOffsets offsets)
        Initialize a MPSMatrixCopyDescriptor using offsets generated on the CPU This is for one at a time intialization of the copy operations
        Parameters:
        index - The index of the copy operation
        sourceMatrix - The source matrix for this copy operation
        destinationMatrix - The destination matrix for this copy operation
        offsets - The offsets to use for the copy operation
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()