Skip to content

Add a split-preprocessing pass#2185

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_802739959
Sep 5, 2025
Merged

Add a split-preprocessing pass#2185
copybara-service[bot] merged 1 commit intomainfrom
test_802739959

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Sep 3, 2025

Add a split-preprocessing pass

This new pass splits the main entry function into two: one that is the same as
the original function signature, but lazily packs all static plaintexts at
runtime (and then calls the second function), and a second __preprocessed
function that requires pre-packed plaintexts to be passed in as function
arguments.

A related change will further add pre-packing helpers as part of
add-client-interface, and then a final change will update e2e tests that should
be eagerly packing plaintexts on the client side (such as learned ML weights).

However, because the original function signature is preserved, all existing e2e
tests should continue to work with this pass integrated.

@copybara-service copybara-service bot force-pushed the test_802739959 branch 4 times, most recently from 8e7a9a1 to 8f19fe8 Compare September 5, 2025 17:13
This new pass splits the main entry function into two: one that is the same as
the original function signature, but lazily packs all static plaintexts at
runtime (and then calls the second function), and a second `__preprocessed`
function that requires pre-packed plaintexts to be passed in as function
arguments.

A related change will further add pre-packing helpers as part of
add-client-interface, and then a final change will update e2e tests that should
be eagerly packing plaintexts on the client side (such as learned ML weights).

However, because the original function signature is preserved, all existing e2e
tests should continue to work with this pass integrated.

PiperOrigin-RevId: 803523060
@copybara-service copybara-service bot merged commit 0eeec83 into main Sep 5, 2025
@copybara-service copybara-service bot deleted the test_802739959 branch September 5, 2025 17:51
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