Contents

tensorSizeAndAlign(descriptor:)

Determines the size and alignment required to hold the data of a tensor you create with a descriptor in a buffer.

Declaration

func tensorSizeAndAlign(descriptor: MTLTensorDescriptor) -> MTLSizeAndAlign

Parameters

  • descriptor:

    A description of the properties for the new tensor.

Return Value

The size and alignment required to hold the data of a tensor you create with descriptor in a buffer.