提交 6f745834 编写于 作者: S sneaxiy

update python_data_feeding.md

上级 db7bdfea
......@@ -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<framework::DDim>& dims, const Place& place);
PyArrayFeedQueue* feeder() { return feeder_.get(); }
const PyArrayFeederQueue* feeder() const { return feeder_.get(); }
std::shared_ptr<PyArrayFeedQueue> feeder() { return feeder_; }
const std::shared_ptr<PyArrayFeederQueue>& feeder() const { return feeder_; }
private:
std::shared_ptr<PyArrayFeedQueue> feeder_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册