2

When I use hydra in a python pytorch project, the operation result prompt “Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.” But i don't konw how to set it.

najixzyc
  • 21
  • 1
  • 1
  • 3

1 Answers1

4

You set an environment variable in the shell. For a specific run:

$ HYDRA_FULL_ERROR=1 python foo.py

Or for all runs in this shell session:

$ export HYDRA_FULL_ERROR=1
$ python foo.py

However, you shouldn't normally need to set it. This is more of a debugging backdoor in case of issues with Hydra itself. If you hit a case where you can only understand your issue after setting HYDRA_FULL_ERROR, please file an issue.

Omry Yadan
  • 31,280
  • 18
  • 64
  • 87