Method scalar
val scalar: 'T -> Tensor<'T>
Creates a new zero-dimensional (scalar) tensor with the specified value.
Declaration
val scalar: value:'T -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
'T | value | The value of the new, scalar tensor. |
Returns
Type | Description |
---|---|
Tensor<'T> | The new tensor. |
Type Parameters
Name | Description |
---|---|
'T |