Skip to content

Enforce Keras safe mode when loading models in evaluate_pruning. - #1314

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1020190437
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1020190437

Conversation

@copybara-service

Copy link
Copy Markdown

Enforce Keras safe mode when loading models in evaluate_pruning.

The evaluate_pruning tool now loads models with Keras safe mode enabled
for all formats, including HDF5. Models with unsafe objects such as
Lambda layers are rejected by default. Pass the new
--allow_unsafe_deserialization flag to load models from trusted sources.

The evaluate_pruning tool now loads models with Keras safe mode enabled
for all formats, including HDF5. Models with unsafe objects such as
Lambda layers are rejected by default. Pass the new
--allow_unsafe_deserialization flag to load models from trusted sources.

PiperOrigin-RevId: 1020190437
@github-actions github-actions Bot added the technique:pruning Regarding tfmot.sparsity.keras APIs and docs label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technique:pruning Regarding tfmot.sparsity.keras APIs and docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant