Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename task_name failed #644

Open
YChienHung opened this issue Jun 28, 2024 · 1 comment
Open

rename task_name failed #644

YChienHung opened this issue Jun 28, 2024 · 1 comment

Comments

@YChienHung
Copy link

YChienHung commented Jun 28, 2024

When I run command
python src/train.py trainer=ddp logger=csv model=mnist data=mnist callbacks=default task_name="new_task_name",

An error occurred
Traceback (most recent call last):
File "/root/data/---/project/---/src/train.py", line 132, in
main()
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/main.py", line 94, in decorated_main
_run_hydra(
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/utils.py", line 394, in _run_hydra
_run_app(
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/utils.py", line 457, in _run_app
run_and_report(
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/utils.py", line 223, in run_and_report
raise ex
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/utils.py", line 220, in run_and_report
return func()
^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/utils.py", line 458, in
lambda: hydra.run(
^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/hydra.py", line 105, in run
cfg = self.compose_config(
^^^^^^^^^^^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/hydra.py", line 594, in compose_config
cfg = self.config_loader.load_configuration(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/config_loader_impl.py", line 142, in load_configuration
return self._load_configuration_impl(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/config_loader_impl.py", line 244, in _load_configuration_impl
parsed_overrides, caching_repo = self._parse_overrides_and_create_caching_repo(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/_internal/config_loader_impl.py", line 228, in _parse_overrides_and_create_caching_repo
parsed_overrides = parser.parse_overrides(overrides=overrides)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/data/anaconda3/envs/---/lib/python3.11/site-packages/hydra/core/override_parser/overrides_parser.py", line 96, in parse_overrides
raise OverrideParseException(
hydra.errors.OverrideParseException: LexerNoViableAltException: task_name=new_task_name
^
See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

@YChienHung
Copy link
Author

amazing, the command runs without error
python src/train.py trainer=ddp logger=csv model=mnist data=mnist callbacks=default task_name="new_task_name" # abc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant