Method NewOutputTensor
NewOutputTensor(TensorShape, DataType)
Allocate a new Tensor of a given shape and data type using the AllocScope.LayerOutput scope.
Declaration
public Tensor NewOutputTensor(TensorShape shape, DataType dataType)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorShape | shape | The shape of the tensor. |
| DataType | dataType | The data type of the tensor. |
Returns
| Type | Description |
|---|---|
| Tensor | The allocated tensor. |