Method NewTempTensor
NewTempTensor(TensorShape, DataType)
Allocate a new Tensor
of a given shape and data type using the AllocScope.InternalToLayer
scope.
Declaration
public Tensor NewTempTensor(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. |