From fb0729ee7f5df93f782cd374f51bf4c8e8cd52a6 Mon Sep 17 00:00:00 2001 From: Zhang Ting <709968123@qq.com> Date: Fri, 24 Apr 2020 16:21:26 +0800 Subject: [PATCH] avoid warnings in MAC compile (#24124) --- paddle/fluid/framework/operator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/operator.h b/paddle/fluid/framework/operator.h index 81ee2ab2201..cfb114c9ea3 100644 --- a/paddle/fluid/framework/operator.h +++ b/paddle/fluid/framework/operator.h @@ -484,8 +484,8 @@ class OperatorWithKernel : public OperatorBase { const std::string& var_name, const Tensor& tensor, const OpKernelType& expected_kernel_type) const; - virtual platform::Place GetExecutionPlace( - const platform::Place& platform) const { + platform::Place GetExecutionPlace( + const platform::Place& platform) const override { return kernel_type_->place_; } -- GitLab