refactor to use in python

This commit is contained in:
2023-07-12 01:05:24 +02:00
parent d1eaab6408
commit a60b06e2f2
4 changed files with 33 additions and 5 deletions

View File

@@ -167,6 +167,9 @@ int main()
}
// Print the resulting 3x3 tensor
std::cout << tensor_3x3 << std::endl;
vector<int> v = { 1,2,3,4,5 };
torch::Tensor t = torch::tensor(v);
cout << t << endl;