Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
Executor will call close_files in some cases, and it will see the self._log_destination list to be empty.
If we call _open_files afterward, which assumes the self._log_destination to be of the same length as self.log_destination. This will raise an IndexError.
Possible Fix
Either change the close_file logic to make sure the list won't be zero or change the _open_files logic to make sure the we recreate the list to avoid IndexError
The Problem
Executor will call
close_files
in some cases, and it will see theself._log_destination
list to be empty.If we call
_open_files
afterward, which assumes theself._log_destination
to be of the same length asself.log_destination
. This will raise anIndexError
.Possible Fix
Either change the
close_file
logic to make sure the list won't be zero or change the_open_files
logic to make sure the we recreate the list to avoidIndexError