Skip to content

Commit

Permalink
Fix/cache callback reset data (#570)
Browse files Browse the repository at this point in the history
* Fix bug where cache imaging callback didn't reset data

* Update changelog
  • Loading branch information
MattPainter01 authored and ethanwharris committed Jun 13, 2019
1 parent 068f84c commit 86389d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
- Fixed a bug where list or dictionary metrics would cause the tensorboard callback to error
- Fixed a bug where running a trial without training steps would error
- Fixed a bug where the caching imaging callback didn't reset data so couldn't be run in multiple trials

## [0.3.2] - 2019-05-28
### Added
Expand Down
1 change: 1 addition & 0 deletions torchbearer/callbacks/imaging/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def on_batch(self, state):

def on_end_epoch(self, state):
super(CachingImagingCallback, self).on_end_epoch(state)
self._data = None
self._done = False


Expand Down

0 comments on commit 86389d2

Please sign in to comment.