Constructor TextureTensorData
TextureTensorData(DataType, TensorShape, int, bool)
Initializes and returns an instance of TextureTensorData with given shape and blocked axis. A RenderTexture is allocated to the correct size.
Declaration
public TextureTensorData(DataType dataType, TensorShape shape, int axis, bool clearOnInit = false)
Parameters
| Type | Name | Description |
|---|---|---|
| DataType | dataType | The data type of the tensor. |
| TensorShape | shape | The (unblocked) shape of the tensor. |
| int | axis | The axis on which to block the shape. |
| bool | clearOnInit | Whether to zero the data on allocation. The default value is |