Skip to content

Commit

Permalink
Remove supprot for SavedModels due to incompatibilies. (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
  • Loading branch information
mihaimaruseac authored Oct 26, 2023
1 parent 5ac5759 commit 1f678d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions slsa_for_models/tensorflow_cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ def supported_models():
# New Keras format
'tensorflow_model.keras': lambda m, p: m.save(p, save_format='keras'),
# TF SavedModel formats, full model and weights only
'tensorflow_saved_model': lambda m, p: m.save(p, save_format='tf'),
'tensorflow_exported_model': lambda m, p: m.export(p),
# TODO: Re-enable support for these when SLSA supports directories
# 'tensorflow_saved_model': lambda m, p: m.save(p, save_format='tf'),
# 'tensorflow_exported_model': lambda m, p: m.export(p),
# Legacy HDFS format, full model and weights only
'tensorflow_hdf5_model.h5': lambda m, p: m.save(p, save_format='h5'),
'tensorflow_hdf5.weights.h5': lambda m, p: m.save_weights(p),
Expand Down

0 comments on commit 1f678d0

Please sign in to comment.