use candle_core::{Device, Tensor}; fn main() -> Result<(), Box> { // let device = Device::Cpu; let device = Device::new_cuda(0)?; let a = Tensor::randn(0f32, 1., (2, 3), &device)?; let b = Tensor::randn(0f32, 1., (3, 4), &device)?; let c = a.matmul(&b)?; println!("{c}"); Ok(()) }