Hi everyone, i prepared my data in a txt, and load my data to a vector , but i don’t know how to transfer the vector to tensor , does anyone can help me? or do you have a working example about how to load customer data in libtorch? Thansk very much!
My data is like this




1
689.4757
23269.80488
52317.88778
3.014618183
288.084987
44.1984693




2
1551.320325
21373.7467
45142.28644
24.56772949
177.9067883
120.3533858


3
1539.993224
21373.7467
43408.62695
29.13191777
142.9295824
136.4111031


4
1528.666123
20684.271
42337.51376
17.35518505
92.2126338
121.7842715


5
1517.339023
18615.8439
40610.48653
16.453617
92.84858299
148.6531252


6
1506.011922
16030.31003
38612.93279
18.82023314
109.2242749
171.7062836


7
1494.684821
14134.25185
36722.0288
19.10197316
106.9984527
173.2961566


8
1483.35772
12410.5626
34595.2752
18.42579712
92.3716211
164.5518551


9
1472.03062
11721.0869
33356.81051
17.21431505
77.42681493
146.7452776


10
1460.703519
11031.6112
32546.71939
16.00283297
69.31846265
138.6369253


11
1449.376418
10342.1355
31821.36265
15.35483093
65.97972935
130.528573


12
1438.049317
10514.50443
31819.29811
13.94613085
56.44049137
111.7680717


13
1426.722216
11548.71798
32653.10349
10.84699066
39.90581221
92.2126338


14
1415.395116
9307.92195
30574.35619
13.52352082
53.57871998
114.9478176


15
1404.068015
9135.553025
30232.80911
12.56560476
46.7422661
102.2288337


16
1392.740914
8790.815175
29904.74995
11.86125472
44.039482
100.797948


17
1381.413813
8790.815175
29892.38411
11.01603467
40.54176141
93.48453219


18
1370.086712
9307.92195
31322.66857
9.015680548
48.49112639
78.85770063


19
1358.759612
9307.92195
31388.43546
11.01603467
61.21011036
89.3508624


20
1347.432511
8963.1841
29823.66802
9.607334584
31.32049803
78.69871333


21
1336.10541
12410.5626
34153.4695
3.155488192
6.359491986
25.43796794


22
1324.778309
9480.290875
30508.8149
8.762114533
28.93568854
86.64807831


23
1313.451209
9135.553025
30271.75316
9.184724558
33.22834563
83.15035772


24
1302.124108
8963.1841
30351.26544
9.128376555
38.15695192
73.61111974


25
1290.797007
7928.97055
29124.98256
9.184724558
35.13619322
80.60656092


26
1279.469906
7584.2327
28722.60978
8.959332545
33.38733293
79.65263712


27
1268.142805
7584.2327
28518.63015
8.452200514
28.14075204
75.20099273


28
1256.815705
7584.2327
28441.39867
8.762114533
28.93568854
72.97517054


29
1245.488604
7239.49485
27206.697
8.424026512
15.42176807
73.29314514


30
1234.161503
6825.80943
28778.44985
8.2268085
44.9934058
72.97517054


31
1222.834402
6894.757
27564.72623
8.762114533
27.02784094
72.65719594


32
1211.507301
8618.44625
30445.17942
5.493930334
12.24202207
44.5164439


33
1200.180201
5515.8056
25530.64352
9.269246563
17.17062836
92.84858299


34
1188.8531
5515.8056
26216.10664
9.607334584
34.34125672
76.79086573


35
1177.525999
5343.436675
26128.93031
8.649418526
30.84353613
74.72403083


36
1166.198898
5171.06775
25364.30285
8.170460497
19.07847596
77.26782763


37
1154.871798
5240.01532
25733.47489
7.860546478
23.68910765
61.21011036


38
1143.544697
4826.3299
25957.57523
7.888720479
34.50024402
67.25162775


39
1132.217596
4826.3299
25502.64643
7.691502467
26.55087904
66.93365315


40
1120.890495
4826.3299
25697.55231
7.494284455
28.45872664
65.02580556


41
1109.563394
4826.3299
25497.35103
7.156196435
19.71442516
61.84605956


42
1098.236294
5171.06775
26396.67194
6.367324387
20.50936165
61.21011036


43
1086.909193
4826.3299
26268.7702
6.649064404
20.66834895
54.53264378


44
1075.582092
4481.59205
24608.22169
7.07167443
4.769618989
66.45669125


45
1064.254991
4309.223125
25307.77357
6.930804421
28.29973934
63.59491986


46
1052.92789
4309.223125
25417.84779
6.620890402
23.84809495
58.50732627


47
1041.60079
4136.8542
25075.2677
6.620890402
24.00708225
61.21011036


48
1030.273689
4136.8542
25363.33851
6.339150385
19.23746326
58.03036437


49
1018.946588
5171.06775
28286.08222
4.789580291
12.08303477
31.00252343


50
1007.619487
4481.59205
27064.56072
4.845928295
15.89872996
45.3113804


51
996.2923865
3240.53579
23791.13918
6.90263042
23.05315845
58.82530087


52
984.9652857
2930.271725
23338.64946
8.029590488
32.11543453
72.97517054


53
973.6381849
3102.64065
22517.61299
8.931158543
23.21214575
56.44049137


54
962.3110841
3102.64065
24546.79287
6.029236366
20.03239976
52.94277078


55
950.9839834
2930.271725
24436.37761
5.888366358
22.73518385
52.46580888


56
939.6568826
2930.271725
24321.20169
6.001062365
21.46328545
52.94277078