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

Use 0 for size of infinite datasets. #347

Merged
merged 1 commit into from
Jul 30, 2021

Commits on Jul 30, 2021

  1. Use 0 for size of infinite datasets.

    This changes the value of the `size` property for datasets from
    `float("inf")` to `0` if the size of the dataset is unknown or
    unbounded. This is because the size property is used to return
    `len()`, an the length cannot be a floating-point number..
    
    Fixes facebookresearch#303.
    ChrisCummins committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    b69edb1 View commit details
    Browse the repository at this point in the history