Advertisement
Laudanum-user

torch

Apr 19th, 2023
918
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #include <torch/torch.h>
  2. #include <iostream>
  3.  
  4. int main() {
  5.   torch::Tensor tensor = torch::rand({2, 3});
  6.   std::cout << tensor << std::endl;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement