mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 19:58:35 +00:00
Tweaks.
This commit is contained in:
@ -14,5 +14,13 @@ fn main() -> Result<()> {
|
||||
println!("{:?}", y.to_vec2::<f32>()?);
|
||||
let z = x.matmul(&y)?;
|
||||
println!("{:?}", z.to_vec2::<f32>()?);
|
||||
let x = Tensor::new(
|
||||
&[[11f32, 22.], [33., 44.], [55., 66.], [77., 78.]],
|
||||
&Device::Cpu,
|
||||
)?;
|
||||
let y = Tensor::new(&[[1f32, 2., 3.], [4., 5., 6.]], &Device::Cpu)?;
|
||||
println!("{:?}", y.to_vec2::<f32>()?);
|
||||
let z = x.matmul(&y)?;
|
||||
println!("{:?}", z.to_vec2::<f32>()?);
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user