pub fn scalar_tensor(value: f32, device: Device, dtype: Kind) -> Tensor
Create a scalar tensor from a value with specified dtype