You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently examples/01-tensor.rs shows how to create tensors with runtime dimensions, but there are no corresponding examples in 02-ops.rs.
Add some of the tensors in examples/02-tensor to use both runtime & const dimensions.
Change the first matmul call to use both runtime & const dims
Show an example of using RealizeTo trait to add tensors with different types of dimensions:
let a:Tensor<(Const<3>,usize),f32,_> = dev.sample_uniform_like(&(Const,5));let b:Tensor<(usize,Const<5>),f32,_> = dev.sample_uniform_like(&(3,Const));let c = a + b.realize().unwrap();
The text was updated successfully, but these errors were encountered:
Currently examples/01-tensor.rs shows how to create tensors with runtime dimensions, but there are no corresponding examples in 02-ops.rs.
RealizeTo
trait to add tensors with different types of dimensions:The text was updated successfully, but these errors were encountered: