# Tensor

    public struct Tensor : Equatable, Hashable

An input or output tensor in a TensorFlow Lite graph.
- `


  ### [name](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor#/s:19TensorFlowLiteSwift0A0V4nameSSvp)


  ` The name of the `Tensor`.

  #### Declaration

  Swift

      public let name: String

- `


  ### [dataType](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor#/s:19TensorFlowLiteSwift0A0V8dataTypeAC04DataF0Ovp)


  ` The data type of the `Tensor`.

  #### Declaration

  Swift

      public let dataType: https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType.html

- `


  ### [shape](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor#/s:19TensorFlowLiteSwift0A0V5shapeAC5ShapeVvp)


  ` The shape of the `Tensor`.

  #### Declaration

  Swift

      public let shape: https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/Shape.html

- `


  ### [data](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor#/s:19TensorFlowLiteSwift0A0V4data10Foundation4DataVvp)


  ` The data in the input or output `Tensor`.

  #### Declaration

  Swift

      public let data: Data

- `


  ### [quantizationParameters](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor#/s:19TensorFlowLiteSwift0A0V22quantizationParametersAA012QuantizationF0VSgvp)


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

  #### Declaration

  Swift

      public let quantizationParameters: https://developers.google.com/edge/api/tflite/swift/Structs/QuantizationParameters.html?

- `


  ### [DataType](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType.html)


  ` The supported `https://developers.google.com/edge/api/tflite/swift/Structs/Tensor.html` data types.

  #### Declaration

  Swift

      public enum DataType : Equatable, Hashable

- `


  ### [Shape](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/Shape.html)


  ` The shape of a `https://developers.google.com/edge/api/tflite/swift/Structs/Tensor.html`.

  #### Declaration

  Swift

      public struct Shape : Equatable, Hashable

      extension https://developers.google.com/edge/api/tflite/swift/Structs/Tensor.html.Shape: ExpressibleByArrayLiteral