Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing
test_logger::test_logger_callback
. (#9514)
The current PR provides a fix for `test_logger::test_logger_callback` test. 1. The call of `set_run_dir('.')` creates the `run_dir` attribute for default config. Without this call we get an AttributeError: ``` def __getattr__(self, name): if name in self: return self[name] else: > raise AttributeError(name) E AttributeError: run_dir ``` 2. The call of `create_loader()` modify the value `cfg.share.num_splits` to 3 which allows you to create train/val/test loggers and avoid the IndexError's like the following one: ``` def val_logger(self) -> Any: > return self._logger[1] E IndexError: list index out of range ``` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information