提交 70c410ac 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5096 Fixes a bug in RandomSharpness cpp op

Merge pull request !5096 from ava/masterssss
...@@ -44,8 +44,7 @@ Status RandomSharpnessOp::Compute(const std::shared_ptr<Tensor> &input, std::sha ...@@ -44,8 +44,7 @@ Status RandomSharpnessOp::Compute(const std::shared_ptr<Tensor> &input, std::sha
float mid = (end_degree_ + start_degree_) / 2; float mid = (end_degree_ + start_degree_) / 2;
alpha_ = mid + random_double * degree_range; alpha_ = mid + random_double * degree_range;
SharpnessOp::Compute(input, output); return SharpnessOp::Compute(input, output);
return Status::OK();
} }
} // namespace dataset } // namespace dataset
} // namespace mindspore } // namespace mindspore
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册