Skip to content

Commit 141c131

Browse files
committed
clear session only for tf
1 parent aeab361 commit 141c131

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

P1B3/p1b3_baseline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,7 @@ def main():
378378

379379
if __name__ == '__main__':
380380
main()
381-
K.clear_session()
381+
try:
382+
K.clear_session()
383+
except AttributeError: # theano does not have this function
384+
pass

0 commit comments

Comments
 (0)