一、程序 配置好libtorch环境后,采用如下的程序进行测试: #include <torch/torch.h> #include <iostream> int main() { torch::Tensor tensor = torch::eye(3); std