ORTTensorTypeAndShapeInfo

Objective-C

@interface ORTTensorTypeAndShapeInfo : NSObject

Swift

class ORTTensorTypeAndShapeInfo : NSObject

A tensor’s type and shape information.

  • The tensor element data type.

    Declaration

    Objective-C

    @property (nonatomic) ORTTensorElementDataType elementType;

    Swift

    var elementType: ORTTensorElementDataType { get set }
  • The tensor shape.

    Declaration

    Objective-C

    @property (nonatomic) NSArray<NSNumber *> *_Nonnull shape;

    Swift

    var shape: [NSNumber] { get set }