Method relayout
static member relayout: TensorLayout -> Tensor<'T> -> Tensor<'T>
Creates a tensor with the specified layout sharing its storage with the original tensor.
Declaration
static member relayout: newLayout:TensorLayout -> a:Tensor<'T> -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
TensorLayout | newLayout | The new tensor memory layout. |
Tensor<'T> | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
Tensor<'T> | The resulting tensor. |