Skip to main content

scalar_tensor

Function scalar_tensor 

Source
pub fn scalar_tensor(value: f32, device: Device, dtype: Kind) -> Tensor
Expand description

Create a scalar tensor from a value with specified dtype