Back to Tensorflow

Tensor

tensorflow/lite/g3doc/api_docs/swift/Structs/Tensor.html

2.21.01.3 KB
Original Source

Tensor

public struct Tensor : Equatable, Hashable

An input or output tensor in a TensorFlow Lite graph.

`

                name
                `

The name of the Tensor.

Declaration

Swift

public let name: String

`

                dataType
                `

The data type of the Tensor.

Declaration

Swift

public let dataType: DataType

`

                shape
                `

The shape of the Tensor.

Declaration

Swift

public let shape: Shape

`

                data
                `

The data in the input or output Tensor.

Declaration

Swift

public let data: Data

`

                quantizationParameters
                `

The quantization parameters for the Tensor if using a quantized model.

Declaration

Swift

public let quantizationParameters: QuantizationParameters?

`

                DataType
                `

The supported Tensor data types.

Declaration

Swift

public enum DataType : Equatable, Hashable

`

                Shape
                `

The shape of a Tensor.

Declaration

Swift

public struct Shape : Equatable, Hashable
extension Tensor.Shape: ExpressibleByArrayLiteral