Skip to content

Instantly share code, notes, and snippets.

@mlazos
Created March 22, 2023 09:18
Show Gist options
  • Save mlazos/815ea9e76aca665602228f960e0eb0d6 to your computer and use it in GitHub Desktop.
Save mlazos/815ea9e76aca665602228f960e0eb0d6 to your computer and use it in GitHub Desktop.
error_msg_example
TORCH_LOGS="aot,," python script.py
Traceback (most recent call last):
File "/scratch/mlazos/test/script.py", line 1, in <module>
import torch
File "/scratch/mlazos/pytorch/torch/__init__.py", line 1645, in <module>
_logging._init_logs()
File "/scratch/mlazos/pytorch/torch/_logging/_internal.py", line 400, in _init_logs
_update_log_state_from_env()
File "/scratch/mlazos/pytorch/torch/_logging/_internal.py", line 328, in _update_log_state_from_env
log_state = _parse_log_settings(log_setting)
File "/scratch/mlazos/pytorch/torch/_logging/_internal.py", line 277, in _parse_log_settings
raise ValueError(_invalid_settings_err_msg(settings))
ValueError: Invalid log settings: aot,,, must be a comma separated list of fully qualified module names, registered log names or registered artifact names.
Currently registered names:
dynamo
aot
inductor
sym_shapes
aot_forward_graph
graph_code
aot_joint_graph
guards
output_code
graph
aot_backward_graph
bytecode
schedule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment