@@ -72,7 +72,7 @@ Tensor NestedTensor_add_Tensor(
7272 }
7373 at::Tensor numbers_t = torch::tensor (numbers).to (torch::kInt32 );
7474 Tensor nt_sizes_cumsum =
75- at::native:: cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
75+ at::cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
7676 TORCH_CHECK (nt_sizes_.dim () == 2 , " NestedTensor metadata of unexpected dimension." )
7777 Tensor nt_sizes = at::cat ({torch::tensor ({0 }, torch::kInt32 ), nt_sizes_cumsum});
7878 nt_sizes = nt_sizes.to (torch::kCUDA );
@@ -108,7 +108,7 @@ Tensor NestedTensor_add_Tensor(
108108 }
109109 std::tie (self, other) = _expand_other_as (self_, other_);
110110 return map_nested_tensor (
111- [&alpha](Tensor s, Tensor o) {
111+ [&alpha](Tensor s, Tensor o) {
112112 return at::add (s, o, alpha); },
113113 self,
114114 other);
@@ -270,7 +270,7 @@ Tensor NestedTensor_mul_Tensor(const Tensor& self_, const Tensor& other_) {
270270 }
271271 at::Tensor numbers_t = torch::tensor (numbers).to (torch::kInt32 );
272272 Tensor nt_sizes_cumsum =
273- at::native:: cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
273+ at::cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
274274 TORCH_CHECK (nt_sizes_.dim () == 2 , " NestedTensor metadata of unexpected dimension." )
275275 Tensor nt_sizes = at::cat ({torch::tensor ({0 }, torch::kInt32 ), nt_sizes_cumsum});
276276 nt_sizes = nt_sizes.to (torch::kCUDA );
@@ -295,7 +295,7 @@ Tensor NestedTensor_mul_Tensor(const Tensor& self_, const Tensor& other_) {
295295 }
296296 std::tie (self, other) = _expand_other_as (self_, other_);
297297 return map_nested_tensor (
298- [](Tensor s, Tensor o) {
298+ [](Tensor s, Tensor o) {
299299 return at::mul (s, o); }, self, other);
300300}
301301
@@ -389,7 +389,7 @@ Tensor NestedTensor_sub_Tensor(
389389 }
390390 at::Tensor numbers_t = torch::tensor (numbers).to (torch::kInt32 );
391391 Tensor nt_sizes_cumsum =
392- at::native:: cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
392+ at::cumsum (numbers_t , 0 ).to (torch::kInt32 ).reshape ({-1 });
393393 TORCH_CHECK (nt_sizes_.dim () == 2 , " NestedTensor metadata of unexpected dimension." )
394394 Tensor nt_sizes = at::cat ({torch::tensor ({0 }, torch::kInt32 ), nt_sizes_cumsum});
395395 nt_sizes = nt_sizes.to (torch::kCUDA );
@@ -414,7 +414,7 @@ Tensor NestedTensor_sub_Tensor(
414414 }
415415 std::tie (self, other) = _expand_other_as (self_, other_);
416416 return map_nested_tensor (
417- [&alpha](Tensor s, Tensor o) {
417+ [&alpha](Tensor s, Tensor o) {
418418 return at::sub (s, o, alpha); },
419419 self,
420420 other);
0 commit comments