diff --git a/README.md b/README.md index a3b13fe79cc33927e5cc3e091926b111688a941b..8d89c6b1ec9e4aefbd64328dedb4e8c7cc50c21b 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddl ## Installation It is recommended to check out the -[Docker installation guide](http://www.paddlepaddle.org/docs/develop/documentation/en/getstarted/build_and_install/docker_install_en.html) +[Docker installation guide](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/build_and_install/docker_install_en.html) before looking into the -[build from source guide](http://www.paddlepaddle.org/docs/develop/documentation/en/getstarted/build_and_install/build_from_source_en.html). +[build from source guide](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/build_and_install/build_from_source_en.html). ## Documentation diff --git a/paddle/fluid/framework/details/computation_op_handle.h b/paddle/fluid/framework/details/computation_op_handle.h index 36e6f1bf59a7646e1dff6c4844f2a36a5caf363a..f048f973fdeb6cf7d1485cda8cea7d530d9ba465 100644 --- a/paddle/fluid/framework/details/computation_op_handle.h +++ b/paddle/fluid/framework/details/computation_op_handle.h @@ -36,7 +36,7 @@ struct ComputationOpHandle : public OpHandleBase { protected: void RunImpl() override; - virtual bool NeedWait(VarHandleBase *in_var); + bool NeedWait(VarHandleBase *in_var) override; private: std::unique_ptr op_; diff --git a/paddle/fluid/framework/details/fetch_op_handle.h b/paddle/fluid/framework/details/fetch_op_handle.h index e696a7a9ce562e7f1b7fe6633623cb940810fbe1..e09bdd1d3338bb175c1ddae35b53f98197b68e9a 100644 --- a/paddle/fluid/framework/details/fetch_op_handle.h +++ b/paddle/fluid/framework/details/fetch_op_handle.h @@ -42,7 +42,7 @@ struct FetchOpHandle : public OpHandleBase { protected: void RunImpl() override; - virtual void WaitInputVarGenerated(const platform::Place &place); + void WaitInputVarGenerated(const platform::Place &place) override; private: FeedFetchList *data_; diff --git a/python/paddle/fluid/tests/unittests/test_network_with_dtype.py b/python/paddle/fluid/tests/unittests/test_network_with_dtype.py index baafcdbb80238385752183ee0a8ff96a5da4659c..af487919a9986f0c45651e8825b8cc38231c1904 100644 --- a/python/paddle/fluid/tests/unittests/test_network_with_dtype.py +++ b/python/paddle/fluid/tests/unittests/test_network_with_dtype.py @@ -24,7 +24,7 @@ BATCH_SIZE = 20 class TestNetWithDtype(unittest.TestCase): - def setUp(self): + def set_network(self): self.dtype = "float64" self.init_dtype() self.x = fluid.layers.data(name='x', shape=[13], dtype=self.dtype) @@ -55,12 +55,14 @@ class TestNetWithDtype(unittest.TestCase): pass def test_cpu(self): + self.set_network() place = fluid.CPUPlace() self.run_net_on_place(place) def test_gpu(self): if not core.is_compiled_with_cuda(): return + self.set_network() place = fluid.CUDAPlace(0) self.run_net_on_place(place)