Method reshape
val reshape: int64 list -> ITensor -> ITensor
Changes the shape of a tensor.
Declaration
val reshape: shp:int64 list -> a:ITensor -> ITensor
Parameters
| Type | Name | Description |
|---|---|---|
| int64 list | shp | The target shape. |
| ITensor | a | The tensor to operate on. |
Returns
| Type | Description |
|---|---|
| ITensor | A tensor of the specified shape. |