diff --git a/doc/fluid/design/concepts/python_data_feeding.md b/doc/fluid/design/concepts/python_data_feeding.md index a41d1ad0ca87412e2c137afb1681b0fd8ab23006..7966fc27c0280cf05f36101a905b3c2a230e3bdd 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() { return feeder_.get(); } - const PyArrayFeederQueue* feeder() const { return feeder_.get(); } + std::shared_ptr feeder() { return feeder_; } + const std::shared_ptr& feeder() const { return feeder_; } private: std::shared_ptr feeder_; };