diff --git a/mindspore/ccsrc/minddata/dataset/kernels/image/random_sharpness_op.cc b/mindspore/ccsrc/minddata/dataset/kernels/image/random_sharpness_op.cc index b4c9c40e762008c0f0447f698dd71ffdd5ad8963..bf7b5a7ab84e8f8ebb9602b519453f482d739fc0 100644 --- a/mindspore/ccsrc/minddata/dataset/kernels/image/random_sharpness_op.cc +++ b/mindspore/ccsrc/minddata/dataset/kernels/image/random_sharpness_op.cc @@ -44,8 +44,7 @@ Status RandomSharpnessOp::Compute(const std::shared_ptr &input, std::sha float mid = (end_degree_ + start_degree_) / 2; alpha_ = mid + random_double * degree_range; - SharpnessOp::Compute(input, output); - return Status::OK(); + return SharpnessOp::Compute(input, output); } } // namespace dataset } // namespace mindspore