Monitor should close what it inherits (#1076)
This commit is contained in:
@@ -77,6 +77,7 @@ class Monitor(Wrapper):
|
||||
self.total_steps += 1
|
||||
|
||||
def close(self):
|
||||
super(Monitor, self).close()
|
||||
if self.f is not None:
|
||||
self.f.close()
|
||||
|
||||
|
Reference in New Issue
Block a user