cerebras.modelzoo.common.pytorch_utils.setup_logging_excepthook#

cerebras.modelzoo.common.pytorch_utils.setup_logging_excepthook()[source]#

Setup a logging hook that runs whenever an exception is raised that catches and logs the exception to ensure that the full traceback is printed in the log file.