Skip to content

Commit

Permalink
Fix: convert CudaLongTensor to CudaTensor
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbontar committed Aug 17, 2016
1 parent adc6885 commit cd3a8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ function stereo_predict(x_batch, id)
end

_, d = torch.min(vol, 2)
disp[direction == 1 and 1 or 2] = d:add(-1)
disp[direction == 1 and 1 or 2] = d:cuda():add(-1)
end
collectgarbage()

Expand Down

0 comments on commit cd3a8fc

Please sign in to comment.