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