@@ -149,10 +149,10 @@ __global__ void segment_coo_arg_broadcast_kernel(
149149 }
150150}
151151
152- std::tuple<torch::Tensor, torch ::optional<torch::Tensor>>
152+ std::tuple<torch::Tensor, std ::optional<torch::Tensor>>
153153segment_coo_cuda (torch::Tensor src, torch::Tensor index,
154- torch ::optional<torch::Tensor> optional_out,
155- torch ::optional<int64_t > dim_size, std::string reduce) {
154+ std ::optional<torch::Tensor> optional_out,
155+ std ::optional<int64_t > dim_size, std::string reduce) {
156156 CHECK_CUDA (src);
157157 CHECK_CUDA (index);
158158 if (optional_out.has_value ())
@@ -191,7 +191,7 @@ segment_coo_cuda(torch::Tensor src, torch::Tensor index,
191191 out = torch::zeros (sizes, src.options ());
192192 }
193193
194- torch ::optional<torch::Tensor> arg_out = torch ::nullopt ;
194+ std ::optional<torch::Tensor> arg_out = std ::nullopt ;
195195 int64_t *arg_out_data = nullptr ;
196196 if (reduce2REDUCE.at (reduce) == MIN || reduce2REDUCE.at (reduce) == MAX) {
197197 arg_out = torch::full_like (out, src.size (dim), index.options ());
@@ -325,7 +325,7 @@ __global__ void gather_coo_broadcast_kernel(
325325}
326326
327327torch::Tensor gather_coo_cuda (torch::Tensor src, torch::Tensor index,
328- torch ::optional<torch::Tensor> optional_out) {
328+ std ::optional<torch::Tensor> optional_out) {
329329 CHECK_CUDA (src);
330330 CHECK_CUDA (index);
331331 if (optional_out.has_value ())
0 commit comments