Class MLCTensorDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    @Deprecated
    public class MLCTensorDescriptor
    extends NSObject
    implements NSCopying
    Deprecated.
    MLCTensorDescriptor The MLCTensorDescriptor specifies a tensor descriptor. API-Since: 14.0 Deprecated-Since: 100000.0 Deprecated-Message: Use Metal Performance Shaders Graph or BNNS instead.
    • Constructor Detail

      • MLCTensorDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

        public static MLCTensorDescriptor allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
        Deprecated.
      • batchSizePerSequenceStep

        @Nullable
        public @Nullable NSArray<? extends NSNumber> batchSizePerSequenceStep()
        Deprecated.
        [@property] batchSizePerSequenceStep The batch size for each sequence We populate this only when sequenceLengths is valid. The length of this array should be the maximum sequence length in sequenceLengths (i.e sequenceLengths[0]).
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • convolutionBiasesDescriptorWithFeatureChannelCountDataType

        @Nullable
        public static @Nullable MLCTensorDescriptor convolutionBiasesDescriptorWithFeatureChannelCountDataType​(long featureChannelCount,
                                                                                                               int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create a bias tensor.
        Parameters:
        featureChannelCount - The number of input feature channels
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • convolutionWeightsDescriptorWithInputFeatureChannelCountOutputFeatureChannelCountDataType

        @Nullable
        public static @Nullable MLCTensorDescriptor convolutionWeightsDescriptorWithInputFeatureChannelCountOutputFeatureChannelCountDataType​(long inputFeatureChannelCount,
                                                                                                                                              long outputFeatureChannelCount,
                                                                                                                                              int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create a weight tensor for a kernel of size 1.
        Parameters:
        inputFeatureChannelCount - The number of input feature channels
        outputFeatureChannelCount - The number of output feature channels
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • convolutionWeightsDescriptorWithWidthHeightInputFeatureChannelCountOutputFeatureChannelCountDataType

        @Nullable
        public static @Nullable MLCTensorDescriptor convolutionWeightsDescriptorWithWidthHeightInputFeatureChannelCountOutputFeatureChannelCountDataType​(long width,
                                                                                                                                                         long height,
                                                                                                                                                         long inputFeatureChannelCount,
                                                                                                                                                         long outputFeatureChannelCount,
                                                                                                                                                         int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create a weight tensor.
        Parameters:
        width - The tensor width
        height - The tensor height
        inputFeatureChannelCount - The number of input feature channels
        outputFeatureChannelCount - The number of output feature channels
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
        Specified by:
        copyWithZone in interface NSCopying
      • dataType

        public int dataType()
        Deprecated.
        [@property] dataType The tensor data type. The default is MLCDataTypeFloat32.
      • debugDescription_static

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

        public static java.lang.String description_static()
        Deprecated.
      • descriptorWithShapeDataType

        public static MLCTensorDescriptor descriptorWithShapeDataType​(@NotNull
                                                                      @NotNull NSArray<? extends NSNumber> shape,
                                                                      int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object
        Parameters:
        shape - The tensor shape
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • descriptorWithShapeSequenceLengthsSortedSequencesDataType

        public static MLCTensorDescriptor descriptorWithShapeSequenceLengthsSortedSequencesDataType​(@NotNull
                                                                                                    @NotNull NSArray<? extends NSNumber> shape,
                                                                                                    @NotNull
                                                                                                    @NotNull NSArray<? extends NSNumber> sequenceLengths,
                                                                                                    boolean sortedSequences,
                                                                                                    int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create sequence tensors used by recurrent layers.
        Parameters:
        shape - The tensor shape
        sequenceLengths - The sequence lengths in tensor
        sortedSequences - A boolean to indicate whether sequences are sorted
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • descriptorWithWidthHeightFeatureChannelCountBatchSize

        public static MLCTensorDescriptor descriptorWithWidthHeightFeatureChannelCountBatchSize​(long width,
                                                                                                long height,
                                                                                                long featureChannels,
                                                                                                long batchSize)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create [NCHW] tensors used by convolutional layers.
        Parameters:
        width - The tensor width
        height - The tensor height
        featureChannels - The number of feature channels
        batchSize - The batch size
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • descriptorWithWidthHeightFeatureChannelCountBatchSizeDataType

        public static MLCTensorDescriptor descriptorWithWidthHeightFeatureChannelCountBatchSizeDataType​(long width,
                                                                                                        long height,
                                                                                                        long featureChannelCount,
                                                                                                        long batchSize,
                                                                                                        int dataType)
        Deprecated.
        Create a MLCTensorDescriptor object This method is provided as an easy to use API to create [NCHW] tensors used by convolutional layers.
        Parameters:
        width - The tensor width
        height - The tensor height
        featureChannelCount - The number of feature channels
        batchSize - The batch size
        dataType - The tensor data type
        Returns:
        A new MLCTensorDescriptor object or nil if failure.
      • dimensionCount

        public long dimensionCount()
        Deprecated.
        [@property] dimensionCount The number of dimensions in the tensor
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

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

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

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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • maxTensorDimensions

        public static long maxTensorDimensions()
        Deprecated.
        [@property] maxTensorDimensions The maximum number of tensor dimensions supported
      • resolveClassMethod

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

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

        @Nullable
        public @Nullable NSArray<? extends NSNumber> sequenceLengths()
        Deprecated.
        [@property] sequenceLengths TODO
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • shape

        @NotNull
        public @NotNull NSArray<? extends NSNumber> shape()
        Deprecated.
        [@property] shape The size in each dimension
      • sortedSequences

        public boolean sortedSequences()
        Deprecated.
        [@property] sortedSequences Specifies whether the sequences are sorted or not.
      • stride

        @NotNull
        public @NotNull NSArray<? extends NSNumber> stride()
        Deprecated.
        [@property] stride The stride in bytes in each dimension
      • superclass_static

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

        public long tensorAllocationSizeInBytes()
        Deprecated.
        [@property] tensorAllocationSizeInBytes The allocation size in bytes for a tensor.
      • version_static

        public static long version_static()
        Deprecated.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.