Skip to content

Commit

Permalink
Fixed merge error
Browse files Browse the repository at this point in the history
Signed-off-by: Songki Choi <songki.choi@intel.com>
  • Loading branch information
goodsong81 committed Nov 9, 2022
1 parent b5f176b commit 505746c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _run_task(self, stage_module, mode=None, dataset=None, parameters=None, **kw
model_classes = [label.name for label in self._model_label_schema]
self._model_cfg["model_classes"] = model_classes
if dataset is not None:
train_data_cfg = Stage.get_train_data_cfg(self._data_cfg)
train_data_cfg = Stage.get_data_cfg(self._data_cfg, "train")
# if dataset size is smaller than batch size
if 0 < len(dataset) < self._recipe_cfg.data.get('samples_per_gpu', 2):
train_data_cfg.drop_last = False
Expand Down

0 comments on commit 505746c

Please sign in to comment.