I'm trying to use the Pytorch rust wrapper and am trying to learn the library to use in a project. But, I get a many compilation errors and I'm not sure exactly where it went wrong.
Here is the code I'm using (This is rust btw)
use tch::Tensor;
fn main() {
let t = Tensor::from_slice(&[3, 1, 4, 1, 5]);
let t = t * 2;
t.print();
}
I am using a Windows computer and have installed libtorch to my computer and added it to my path already.
https://pytorch.org/
I've installed the Stable Windows LibTorch C++ CPU version.
Here is the crates page.
https://crates.io/crates/tch/0.16.0