Method broadcastDim
val broadcastDim: int -> int64 -> ITensor -> ITensor
Broadcast a dimension to a specified size.
Declaration
val broadcastDim: dim:int -> size:int64 -> a:ITensor -> ITensor
Parameters
Type | Name | Description |
---|---|---|
int | dim | The size-one dimension to broadcast. |
int64 | size | The size to broadcast to. |
ITensor | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
ITensor | The resulting tensor. |