Skip to content

Commit

Permalink
Fix default dict (#2025)
Browse files Browse the repository at this point in the history
fix: change default to configdict

Signed-off-by: Inhyuk Andy Cho <andy.inhyuk.jo@intel.com>
  • Loading branch information
cih9088 authored Apr 18, 2023
1 parent 4000c7d commit 861157a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otx/algorithms/common/tasks/nncf_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _prepare_optimize(self):
# last batch size of 1 causes undefined behaviour for batch normalization
# when initializing and training NNCF
if self._data_cfg is not None:
data_loader = self._recipe_cfg.data.get("train_dataloader", {})
data_loader = self._recipe_cfg.data.get("train_dataloader", ConfigDict())
samples_per_gpu = data_loader.get("samples_per_gpu", self._recipe_cfg.data.get("samples_per_gpu"))
otx_dataset = get_configs_by_keys(self._data_cfg.data.train, "otx_dataset")
assert len(otx_dataset) == 1
Expand Down

0 comments on commit 861157a

Please sign in to comment.