Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Zhi Lin <[email protected]>
  • Loading branch information
kira-lin committed Apr 10, 2024
1 parent eff6b64 commit cc18432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/raydp/tests/test_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_tf_estimator(spark_on_ray_small, use_fs_directory):
# create model
model = keras.Sequential(
[
keras.layers.InputLayer(input_shape=(2,)),
keras.layers.InputLayer(input_shape=()),
keras.layers.Dense(1, activation='sigmoid')
]
)
Expand Down
2 changes: 1 addition & 1 deletion python/raydp/torch/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,4 @@ def fit_on_spark(self,

def get_model(self):
assert self._trainer is not None, "Must call fit first"
return TorchCheckpoint(self._trained_results.checkpoint.to_directory()).get_model()
return TorchCheckpoint(self._trained_results.checkpoint.to_directory()).get_model(self._model)

0 comments on commit cc18432

Please sign in to comment.