LiteRTLayout

data class LiteRTLayout(val dimensions: List<Int>, val strides: List<Int>)

Describes the layout of a tensor.

Constructors

Link copied to clipboard
constructor(dimensions: List<Int>, strides: List<Int>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Size of each tensor dimension.

Link copied to clipboard

Whether explicit strides are available.

Link copied to clipboard
val rank: Int

Number of tensor dimensions.

Link copied to clipboard

Memory stride for each dimension. An empty list indicates the tensor uses the default contiguous layout.