Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add design doc of Python data feeding #11592

Merged
merged 1 commit into from
Jun 27, 2018

Conversation

sneaxiy
Copy link
Collaborator

@sneaxiy sneaxiy commented Jun 20, 2018

No description provided.

size_t size() const; // Get the current size of the queue
size_t capacity() const; // Get the capacity of the queue
bool is_full() const;
bool is_empty() const;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these two functions necessary?

// Use pybind11::gil_scoped_release to release GIL of Python
std::vector<framework::LoDTensor> pop();
private:
BlockingQueue<std::vector<framework::LoDTensor>> queue_;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have more than one BlockingQueue in Fluid, so please use a namespace to specify which one you are using.

@sneaxiy sneaxiy force-pushed the python_data_feeding branch 4 times, most recently from d618421 to 6de7380 Compare June 26, 2018 13:18
@sneaxiy sneaxiy closed this Jun 27, 2018
@sneaxiy sneaxiy reopened this Jun 27, 2018
Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@sneaxiy sneaxiy merged commit 453aa9e into PaddlePaddle:develop Jun 27, 2018
@sneaxiy sneaxiy deleted the python_data_feeding branch October 17, 2019 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants