Skip to content

Fix tests for Azure and DataLoader#905

Closed
ejguan wants to merge 1 commit intometa-pytorch:mainfrom
ejguan:fix_ci
Closed

Fix tests for Azure and DataLoader#905
ejguan wants to merge 1 commit intometa-pytorch:mainfrom
ejguan:fix_ci

Conversation

@ejguan
Copy link
Contributor

@ejguan ejguan commented Nov 18, 2022

Changes

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 18, 2022
@facebook-github-bot
Copy link
Contributor

@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@wenleix wenleix left a comment

Choose a reason for hiding this comment

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

LGTM

timeout: float
worker_init_fn: Optional[Callable[[int], None]]
prefetch_factor: int
prefetch_factor: Optional[int]
Copy link
Contributor

Choose a reason for hiding this comment

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

noob question: why it's called "factor" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't have to be done in this PR; maybe add docsting for arguments in MultiProcessingReadingServicer? Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

2 means there will be a total of 2 * num_workers batches prefetched across all workers.

noob question: it sounds like different data loader workers may have different numbers of prefetched batches? -- because otherwise, the doc should just say "2 means each worker will prefetech 2 batches"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For DataLoader1, each worker always prefetches prefetch_factor batches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants