Class MLCTensorDescriptor

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class MLCTensorDescriptor
extends NSObject
Since:
Available in iOS 14.0 and later.
  • Constructor Details

    • MLCTensorDescriptor

      protected MLCTensorDescriptor()
    • MLCTensorDescriptor

      protected MLCTensorDescriptor​(NSObject.Handle h, long handle)
    • MLCTensorDescriptor

      protected MLCTensorDescriptor​(NSObject.SkipInit skipInit)
    • MLCTensorDescriptor

      public MLCTensorDescriptor​(NSArray<NSNumber> shape, MLCDataType dataType)
    • MLCTensorDescriptor

      public MLCTensorDescriptor​(NSArray<NSNumber> shape, NSArray<NSNumber> sequenceLengths, boolean sortedSequences, MLCDataType dataType)
    • MLCTensorDescriptor

      public MLCTensorDescriptor​(long width, long height, long featureChannels, long batchSize)
    • MLCTensorDescriptor

      public MLCTensorDescriptor​(long width, long height, long featureChannelCount, long batchSize, MLCDataType dataType)
  • Method Details

    • getDataType

      public MLCDataType getDataType()
    • getDimensionCount

      public long getDimensionCount()
    • getShape

      public NSArray<NSNumber> getShape()
    • getStride

      public NSArray<NSNumber> getStride()
    • getTensorAllocationSizeInBytes

      public long getTensorAllocationSizeInBytes()
    • getSequenceLengths

      public NSArray<NSNumber> getSequenceLengths()
    • isSortedSequences

      public boolean isSortedSequences()
    • getBatchSizePerSequenceStep

      public NSArray<NSNumber> getBatchSizePerSequenceStep()
    • getMaxTensorDimensions

      public static long getMaxTensorDimensions()
    • create

      protected static long create​(NSArray<NSNumber> shape, MLCDataType dataType)
    • create

      protected static long create​(NSArray<NSNumber> shape, NSArray<NSNumber> sequenceLengths, boolean sortedSequences, MLCDataType dataType)
    • create

      protected static long create​(long width, long height, long featureChannels, long batchSize)
    • create

      protected static long create​(long width, long height, long featureChannelCount, long batchSize, MLCDataType dataType)
    • createConvolutionWeightsDescriptor

      public static MLCTensorDescriptor createConvolutionWeightsDescriptor​(long width, long height, long inputFeatureChannelCount, long outputFeatureChannelCount, MLCDataType dataType)
    • createConvolutionWeightsDescriptor

      public static MLCTensorDescriptor createConvolutionWeightsDescriptor​(long inputFeatureChannelCount, long outputFeatureChannelCount, MLCDataType dataType)
    • createConvolutionBiasesDescriptor

      public static MLCTensorDescriptor createConvolutionBiasesDescriptor​(long featureChannelCount, MLCDataType dataType)