pub fn factory_float_tensor(data: &[f32], device: Device) -> Tensor
Expand description
Creates a new one-dimensional f32 Tensor with the provided data.
Mostly used for testing; basically equivalent to a limited version
of the raw torch.tensor
constructor.