Skip to content

Generate inputs0 conditionally in incremental_outcome to speed up grid generation.#1695

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943373166
Open

Generate inputs0 conditionally in incremental_outcome to speed up grid generation.#1695
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943373166

Conversation

@copybara-service

Copy link
Copy Markdown

Generate inputs0 conditionally in incremental_outcome to speed up grid generation.

Generate the inputs0 corresponding to scaling_factor0 in the incremental_outcome method only when scaling_factor0 != 0 or not all(media_selected_times) to speed up the grid generation.

Tested:
We tested this optimization, but it might not cover all test cases or usage scenarios. As this change is for open source, please review and test for your specific requirements before adoption.

@google-cla

google-cla Bot commented Jul 10, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…d generation.

Generate the `inputs0` corresponding to `scaling_factor0` in the `incremental_outcome` method only when `scaling_factor0 != 0 or not all(media_selected_times)` to speed up the grid generation.

Tested:
We tested this optimization, but it might not cover all test cases or usage scenarios. As this change is for open source, please review and test for your specific requirements before adoption.
PiperOrigin-RevId: 943373166
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.

0 participants