0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/libraries/science/math/libtorch/test/test.cpp

8 lines
137 B
C++
Raw Normal View History

2020-08-27 18:42:38 +02:00
#include <torch/torch.h>
#include <iostream>
int main() {
torch::Tensor tensor = torch::eye(3);
std::cout << tensor << std::endl;
}