Skip to content

Commit

Permalink
Merge pull request #79 from neuro-ml/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Arseniy Belkov authored Aug 1, 2023
2 parents 21870d4 + e97e3f1 commit ab8f6bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpipe/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.6'
__version__ = '0.2.7'
4 changes: 3 additions & 1 deletion dpipe/batch_iter/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def closing_callback(self):
class ClosingCallback(Callback):
def teardown(self, trainer, pl_module, stage):
this.close()

def on_exception(self, trainer, pl_module, exception):
this.close()

this = self
return ClosingCallback()

Expand Down

0 comments on commit ab8f6bd

Please sign in to comment.