Method ShallowReshape
ShallowReshape(Tensor, TensorShape, AllocScope)
Create a shallow reshape of a tensor with the same tensor data.
Declaration
public override Tensor ShallowReshape(Tensor X, TensorShape shape, AllocScope allocScope)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The tensor to copy. |
TensorShape | shape | The shape of the allocated tensor. |
AllocScope | allocScope | Whether the allocated tensor is internal to the layer or used as an output. |
Returns
Type | Description |
---|---|
Tensor | The allocated tensor. |