diff --git a/doc/fluid/design/concepts/python_data_feeding.md b/doc/fluid/design/concepts/python_data_feeding.md index 0905950413f261a32c7e8bebf5cd4c23103ebbf0..a41d1ad0ca87412e2c137afb1681b0fd8ab23006 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_; };