Skip to content

Conversation

hegongshan
Copy link

https://github.com/pytorch/torchrec/blob/main/torchrec/datasets/random.py#L215

self.num_batches: int = cast(int, num_batches if not None else sys.maxsize)

self.num_batches is always assigned to num_batches even if num_batches is None.

@meta-cla meta-cla 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 Sep 9, 2025
@hegongshan hegongshan changed the title Fix the assignment logic of variable "self.num_batches" in RandomRecDataset Fix the assignment logic of the variable "self.num_batches" in RandomRecDataset Sep 9, 2025
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant