Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose data loader parameters in build_batch_data_loader and build_de…
…tection_train_loader. Summary: X-link: fairinternal/detectron2#598 Pull Request resolved: #5082 Expose the parameter prefetch_factor, persistent_workers, pin_memory in function build_batch_data_loader and build_detection_train_loader. Reviewed By: fanzhangmeta Differential Revision: D46069102 fbshipit-source-id: de47eedea9a61849e60db0181d68a17d1aa1437b
- Loading branch information
1 parent
80307d2
commit fc9c33b
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fc9c33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has bug!
fc9c33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefetch_factor=None is not working with PyTorch v 12.0. Pytorch expects prefetch_factor to be an integer (default is 2).