File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -594,9 +594,9 @@ at::Tensor AtenIpexCPUDev::dil_linear_fuse_relu(
594
594
output_size.push_back (weight.size (0 ));
595
595
596
596
if (self.dim () > 2 ) {
597
- return dbl::comm::gen_aten_tensor_by (y ).reshape (output_size);
597
+ return dbl::comm::gen_aten_tensor_by (std::move (y) ).reshape (output_size);
598
598
}
599
- return dbl::comm::gen_aten_tensor_by (y );
599
+ return dbl::comm::gen_aten_tensor_by (std::move (y) );
600
600
}
601
601
602
602
at::Tensor dil_linear_backward_input (
@@ -1036,7 +1036,7 @@ at::Tensor AtenIpexCPUDev::dil_relu_use_dst_for_bwd(const at::Tensor& grad_outpu
1036
1036
dil::tensor gradx;
1037
1037
dil::eltwise_backward::compute (y, grady, gradx,
1038
1038
dil::algorithm::eltwise_relu_use_dst_for_bwd, /* alpha*/ 0.0 );
1039
- return dbl::comm::gen_aten_tensor_by (gradx);
1039
+ return dbl::comm::gen_aten_tensor_by (std::move ( gradx) );
1040
1040
}
1041
1041
1042
1042
at::Tensor AtenIpexCPUDev::dil_threshold_backward (const at::Tensor& grad_output, const at::Tensor& input, at::Scalar threshold) {
You can’t perform that action at this time.
0 commit comments