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

Persistent prefetch thread #2368

Closed
wants to merge 4 commits into from
Closed

Conversation

cypof
Copy link
Member

@cypof cypof commented Apr 25, 2015

Part of #2351. Makes sure the prefetch thread for data_layer is created only once, instead of for each batch. We discussed about switching to vector instead of Batch, which would probably be easy but I haven't looked at it.

@amuetzel
Copy link

Regarding the vector: do you mean using a vector<Blob> instead of the Batch with the data and label members?

If so, I would favor that option. An example use case for this would be custom data layers that expose more than 2 tops. I'm currently working on such a data layer for my research, and might be able to help with the change. (Though I'm still new to caffe.)

cypof added 4 commits May 18, 2015 17:24
- Interrupt the thread before waiting on join
- Provide a method for looping threads to exit on demand
- CHECK if start and stop succeed instead of returning an error
@shelhamer
Copy link
Member

Closing since everything is bundled and updated in #2114 (and now #2870).

@shelhamer shelhamer closed this Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants