One Logo Pool Ball
MetalPerformanceShadersGraph · IOS API REFERENCE

MPSGraphTensorData

class · iOS 14.0+ · SDK 27.1

class MPSGraphTensorData

Members (13)

init · iOS 14.0+

init

TypeScript
static initDeviceDataShapeDataType(device: MPSGraphDevice, data: ArrayBuffer, shape: Array<_Foundation_NSNumber>, dataType: _MetalPerformanceShaders_MPSDataType): MPSGraphTensorData
Swift declaration
init(device: MPSGraphDevice, data: Data, shape: [NSNumber], dataType: MPSDataType)
init · iOS 14.0+

init

TypeScript
static init(imageBatch: Array<_MetalPerformanceShaders_MPSImage>): MPSGraphTensorData
Swift declaration
init(_ imageBatch: [MPSImage])
init · iOS 14.0+

init

TypeScript
static init54852(matrix: _MetalPerformanceShaders_MPSMatrix): MPSGraphTensorData
Swift declaration
init(_ matrix: MPSMatrix)
init · iOS 14.0+

init

TypeScript
static initRank(matrix: _MetalPerformanceShaders_MPSMatrix, rank: number): MPSGraphTensorData
Swift declaration
init(_ matrix: MPSMatrix, rank: Int)
init · iOS 14.0+

init

TypeScript
static init72488(ndarray: _MetalPerformanceShaders_MPSNDArray): MPSGraphTensorData
Swift declaration
init(_ ndarray: MPSNDArray)
init · iOS 14.0+

init

TypeScript
static init19774(vector: _MetalPerformanceShaders_MPSVector): MPSGraphTensorData
Swift declaration
init(_ vector: MPSVector)
init · iOS 14.0+

init

TypeScript
static initRank2406(vector: _MetalPerformanceShaders_MPSVector, rank: number): MPSGraphTensorData
Swift declaration
init(_ vector: MPSVector, rank: Int)
init · iOS 14.0+

init

TypeScript
static initShapeDataType(buffer: SDKHandle, shape: Array<_Foundation_NSNumber>, dataType: _MetalPerformanceShaders_MPSDataType): MPSGraphTensorData
Swift declaration
init(_ buffer: any MTLBuffer, shape: [NSNumber], dataType: MPSDataType)
init · iOS 15.4+

init

TypeScript
static initShapeDataTypeRowBytes(buffer: SDKHandle, shape: Array<_Foundation_NSNumber>, dataType: _MetalPerformanceShaders_MPSDataType, rowBytes: number): MPSGraphTensorData
Swift declaration
init(_ buffer: any MTLBuffer, shape: [NSNumber], dataType: MPSDataType, rowBytes: Int)
method · iOS 14.0+

mpsndarray

TypeScript
mpsndarray(): _MetalPerformanceShaders_MPSNDArray
Swift declaration
func mpsndarray() -> MPSNDArray
get · iOS 14.0+

dataType

TypeScript
get dataType(): _MetalPerformanceShaders_MPSDataType
Swift declaration
var dataType: MPSDataType { get }
get · iOS 14.0+

device

TypeScript
get device(): MPSGraphDevice
Swift declaration
var device: MPSGraphDevice { get }
get · iOS 14.0+

shape

TypeScript
get shape(): Array<_Foundation_NSNumber>
Swift declaration
var shape: [NSNumber] { get }

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSGraphTensorData.init(_:)

The iOS SDK compiler rejected this binding: cannot find type 'MTLTensor' in scope

MPSGraphTensorData.init()

inherited init: cannot prove legal (class declares 19 custom initializers)

All MetalPerformanceShadersGraph types →