# MachineLearningTensorDescriptor

> This struct contains all the information required to describe an input or output tensor for a machine learning operator.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<MachineLearningTensorDescriptor>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct MachineLearningTensorDescriptor : IEquatable<MachineLearningTensorDescriptor>
```

## Fields

| Value                                                                                                         | Description                  |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [dataType](/engine/6000.5/script-reference/unityengine/rendering/machinelearningtensordescriptor/datatype.md) | The data type of the tensor. |
| [shape](/engine/6000.5/script-reference/unityengine/rendering/machinelearningtensordescriptor/shape.md)       | The shape of the tensor.     |

## Constructors

| Constructor                                                                                                                                                                                                                      | Description                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [MachineLearningTensorDescriptor(UnityEngine.Rendering.MachineLearningDataType,UnityEngine.Rendering.MachineLearningTensorShape)](/engine/6000.5/script-reference/unityengine/rendering/machinelearningtensordescriptor/ctor.md) | Create a new tensor descriptor. |

## Static Methods

| Method                                                                                                            | Description                                   |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [NullTensor](/engine/6000.5/script-reference/unityengine/rendering/machinelearningtensordescriptor/nulltensor.md) | Creates a descriptor for tensor without data. |
