File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -125,16 +125,19 @@ function load_data(db_type)
125125 for line in io.lines (center_dir .. " center_train_" .. tostring (test_model ) .. " _refined.txt" ) do
126126 table.insert (RefPt_ ,line )
127127 end
128+ jointWorld = torch .Tensor (trainSz ,jointNum ,worldDim ):zero ()
129+ RefPt = torch .Tensor (trainSz ,worldDim ):zero ()
128130 elseif db_type == " test" then
129131 print (" testing data loading..." )
130132 RefPt_ = {}
131133 for line in io.lines (center_dir .. " center_test_" .. tostring (test_model ) .. " _refined.txt" ) do
132134 table.insert (RefPt_ ,line )
133135 end
136+ jointWorld = torch .Tensor (testSz ,jointNum ,worldDim ):zero ()
137+ RefPt = torch .Tensor (testSz ,worldDim ):zero ()
134138 end
135139
136- jointWorld = torch .Tensor (trainSz ,jointNum ,worldDim ):zero ()
137- RefPt = torch .Tensor (trainSz ,worldDim ):zero ()
140+
138141 name = {}
139142
140143 fileId = 1
You can’t perform that action at this time.
0 commit comments