diff --git a/src/convolution_api.cpp b/src/convolution_api.cpp index fe8a81a5ce..555b90f926 100644 --- a/src/convolution_api.cpp +++ b/src/convolution_api.cpp @@ -380,14 +380,12 @@ miopenConvolutionForwardGetWorkSpaceSize(miopenHandle_t handle, { MIOPEN_LOG_FUNCTION(handle, wDesc, xDesc, convDesc, yDesc, workSpaceSize); - miopen::try_([&] { + return miopen::try_([&] { auto ctx = ExecutionContext{}; auto problem = ProblemDescription{}; std::tie(ctx, problem) = MakeFwdCtxAndProblem(handle, xDesc, wDesc, convDesc, yDesc); *workSpaceSize = miopen::deref(convDesc).GetWorkSpaceSize(ctx, problem); }); - - return (miopenStatusSuccess); } namespace miopen {