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

Fix num_examples computation in lf.eval.v2. #334

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 14, 2024

Fix num_examples computation in lf.eval.v2.

Previously we first try to get the num_examples from input functor as an optimization for example counting, however, some input functors may set num_examples to None, in that case, we should count the example by executing the input function.

@copybara-service copybara-service bot force-pushed the test_696362374 branch 2 times, most recently from c81a8dd to 499cb08 Compare November 14, 2024 04:18
@copybara-service copybara-service bot changed the title Fix num_examples computation. Fix num_examples computation in lf.eval.v2. Nov 14, 2024
Previously we first try to get the `num_examples` from input functor as an optimization for example counting, however, some input functors may set `num_examples` to None, in that case, we should count the example by executing the input function.

PiperOrigin-RevId: 696370262
@copybara-service copybara-service bot merged commit d3c5d52 into main Nov 14, 2024
@copybara-service copybara-service bot deleted the test_696362374 branch November 14, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant