Method cutRight
static member cutRight: Tensor<'T> -> Tensor<'T>
Removes the last dimension.
Declaration
static member cutRight: a:Tensor<'T> -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
Tensor<'T> | The resulting tensor. |
Remarks
The operation returns a view of the original tensor and shares its storage. Modifications done to the returned tensor will affect the original tensor. Also, modifying the orignal tensor will affect the view.
Examples
let a = HostTensor.zeros [3L; 4L; 5L]
let b = Tensor.cutRight a // b.Shape = [3L; 4L]