Skip to content

Commit

Permalink
Merge pull request #27 from deepray-AI/recommendation
Browse files Browse the repository at this point in the history
[DEBUG] hotfix
  • Loading branch information
fuhailin authored Oct 17, 2023
2 parents 0ebb2e5 + ad8f146 commit c7024ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deepray/core/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def fit(
ValueError: In case of mismatch between the provided input data
and what the model expects or when the input data is empty.
"""
self.steps_per_epoch = steps_per_epoch if steps_per_epoch else 0
self.steps_per_epoch = steps_per_epoch if steps_per_epoch else -1
if FLAGS.benchmark or FLAGS.stop_steps >= 0:
if FLAGS.stop_steps >= 0:
self.steps_per_epoch = FLAGS.stop_steps
Expand Down Expand Up @@ -895,7 +895,7 @@ def _test_step_fn(inputs):
"""Replicated accuracy calculation."""
inputs, labels, sample_weight = data_adapter.unpack_x_y_sample_weight(inputs)
model_outputs = self.model(inputs, training=False)
if labels and self.metric_container:
if labels is not None and self.metric_container:
self.metric_container.update_state(labels, model_outputs, sample_weight=sample_weight)
return model_outputs

Expand Down
1 change: 0 additions & 1 deletion modelzoo/Recommendation/criteo_ctr/run_horovod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ if [ $num_gpu -gt 1 ]; then
--feature_map=feature_map_small.csv \
--use_dynamic_embedding=True \
--model_dir=${RESULTS_DIR} \
--model_export_path=${RESULTS_DIR} \
--distribution_strategy=off \
$use_fp16 $use_xla_tag
fi

0 comments on commit c7024ed

Please sign in to comment.