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