I have been working with Torch. And my current program requires to export a Tensor containing reduced feature matrix. I tried doing the following:
torch.save('t.csv',torch.Tensor({{1,2},{3,4}}),'ascii')
and the output was:
4
1
3
V 1
18
torch.DoubleTensor
2
2 3
3 1
1
4
2
3
V 1
19
torch.DoubleStorage
6
1 2 3 4 5 6
Expected output:
1, 2, 3
4, 5, 6
I'm hoping somebody has an idea as to how I can do this?