Skip to content

Commit

Permalink
Remove deprecated save model option.
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed May 8, 2024
1 parent 3838cd1 commit aadeb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psl-python/tests/python/deeppsl/test_tensorflow_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_sign_model(self):
post_train_results = sign_model.internal_eval(test_data, options=options)

with tempfile.TemporaryDirectory(suffix = '_TestNeuPSL') as temp_dir:
save_path = os.path.join(temp_dir, 'tensorflow_model')
save_path = os.path.join(temp_dir, 'tensorflow_model.h5')
options['save_path'] = save_path
options['load_path'] = save_path
sign_model.internal_save(options=options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def internal_save(self, options):
if 'save_path' not in options:
return {}

self._model.save(options['save_path'], save_format='tf')
self._model.save(options['save_path'])
return {}

def load(self, options):
Expand Down

0 comments on commit aadeb47

Please sign in to comment.