From 9f6aa4c898a06f525ddbbc88079a8795a39db606 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Thu, 21 Jun 2018 02:35:01 +0000 Subject: [PATCH] update python_data_feeding.md --- doc/fluid/design/concepts/python_data_feeding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/design/concepts/python_data_feeding.md b/doc/fluid/design/concepts/python_data_feeding.md index 0905950413f..a41d1ad0ca8 100644 --- a/doc/fluid/design/concepts/python_data_feeding.md +++ b/doc/fluid/design/concepts/python_data_feeding.md @@ -51,8 +51,8 @@ class PyArrayFeedQueueHolder { // `init_once` can only called once, otherwise an exception would raise void init_once(size_t capacity, const std::vector& dims, const Place& place); - PyArrayFeedQueue* feeder(); // feeder_.get() - const PyArrayFeederQueue* feeder() const; // feeder_.get() + PyArrayFeedQueue* feeder() { return feeder_.get(); } + const PyArrayFeederQueue* feeder() const { return feeder_.get(); } private: std::shared_ptr feeder_; }; -- GitLab