Method filled
val filled: int64 list -> 'T -> Tensor<'T>
Creates a new tensor filled with the specified value.
Declaration
val filled: shape:int64 list -> value:'T -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
int64 list | shape | The shape of the new tensor. |
'T | value | The value to fill the new tensor with. |
Returns
Type | Description |
---|---|
Tensor<'T> | The new tensor. |
Type Parameters
Name | Description |
---|---|
'T |