Skip to content

Commit

Permalink
Added support for keras estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalsharma2 committed Jan 14, 2022
1 parent 5a5642d commit 52055b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions horovod/spark/keras/estimator.py
Expand Up @@ -14,7 +14,7 @@
# ==============================================================================
import numbers
import time

import os
import numpy as np
import tensorflow as tf

Expand Down Expand Up @@ -282,7 +282,10 @@ def _fit_on_prepared_data(self, backend, train_rows, val_rows, metadata, avg_row

def _load_model_from_checkpoint(self, run_id):
store = self.getStore()
last_ckpt_path = store.get_checkpoint_path(run_id)
last_ckpt_path = os.path.join(store.get_checkpoint_path(run_id), store.get_checkpoint_filename())

if not store.fs.exists(last_ckpt_path):
return None

if self.getVerbose():
print('Resuming training from last checkpoint: {}'.format(last_ckpt_path))
Expand Down

0 comments on commit 52055b2

Please sign in to comment.