Skip to content

Commit

Permalink
run.py: correctly are sessions destroyed now
Browse files Browse the repository at this point in the history
signed:
Master Yoda
  • Loading branch information
varisd committed Aug 3, 2017
1 parent 307ed5f commit fc862e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neuralmonkey/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ def main() -> None:
if eval_result:
print_final_evaluation(dataset.name, eval_result)

for sess in CONFIG.model.tf_manager.sessions:
del sess
while len(CONFIG.model.tf_manager.sessions):
del CONFIG.model.tf_manager.sessions[0]

5 comments on commit fc862e6

@jlibovicky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta větev se jmenuje jenom master, ne Master Yoda :-)

@jindrahelcl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D :D

@jlibovicky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pylint you broke!

@varisd
Copy link
Member Author

@varisd varisd commented on fc862e6 Aug 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e5b6e37

@jindrahelcl
Copy link
Member

@jindrahelcl jindrahelcl commented on fc862e6 Aug 4, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.