File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,10 @@ RasterizeGaussiansCUDA(
75
75
76
76
torch::Tensor radii = torch::full ({P}, 0 , means3D.options ().dtype (torch::kInt32 ));
77
77
78
- torch::Device device (torch::kCUDA );
79
- torch::TensorOptions options (torch::kByte );
80
- torch::Tensor geomBuffer = torch::empty ({0 }, options.device (device));
81
- torch::Tensor binningBuffer = torch::empty ({0 }, options.device (device));
82
- torch::Tensor imgBuffer = torch::empty ({0 }, options.device (device));
78
+ torch::TensorOptions byte_opts = means3D.options ().dtype (torch::kByte );
79
+ torch::Tensor geomBuffer = torch::empty ({0 }, byte_opts);
80
+ torch::Tensor binningBuffer = torch::empty ({0 }, byte_opts);
81
+ torch::Tensor imgBuffer = torch::empty ({0 }, byte_opts);
83
82
std::function<char *(size_t )> geomFunc = resizeFunctional (geomBuffer);
84
83
std::function<char *(size_t )> binningFunc = resizeFunctional (binningBuffer);
85
84
std::function<char *(size_t )> imgFunc = resizeFunctional (imgBuffer);
You can’t perform that action at this time.
0 commit comments