2020-08-30 13:22:09 +02:00

8 lines
137 B
C++

#include <torch/torch.h>
#include <iostream>
int main() {
torch::Tensor tensor = torch::eye(3);
std::cout << tensor << std::endl;
}