Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update callbacks.py
  • Loading branch information
GregoryMorse authored Oct 1, 2019
commit c96af21b6588f944eb7647b1e54b098c577c5bc8
2 changes: 1 addition & 1 deletion keras/callbacks/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ class CustomDialect(csv.excel):
def on_train_end(self, logs=None):
self.csv_file.close()
self.writer = None

def __del__(self):
if hasattr(self, 'csv_file') and not self.csv_file.closed:
self.csv_file.close()
Expand Down