Writing Tensorboard log files causes Google Colab runtime to crash.
See original GitHub issueDescribe the bug
When running in a Google Colab, if a model is set up to write tensorboard, the runtime crashes after the first write out (typically in the call to model.learn()
).
Code example
Running the example for ppo2
(or any other algorithm) with the addition of the tensorbaord_log
argument. E.g.
model = PPO2(MlpPolicy, env, verbose=1, tensorboard_log='./log')
model.learn(25000) # Causes runtime to crash.
System Info Google Colab with dependencies installed as per the documented example Colab here.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12
Top Results From Across the Web
Google Colab - Your session crashed for an unknown reason
Google Colab is crashing because you are trying to Run Code related to GPU with Runtime as CPU . The execution is successful...
Read more >5 Google Colab Hacks One Should Be Aware Of
Here are some hacks and tricks that can enhance and streamline a user's experience with Google Colab, and also broaden their knowledge.
Read more >[solved] Your session crashed after using all available RAM ...
so first let's talk about the problem. ... why? because we are loading all data at once.or generating all data at once. example...
Read more >colab restart kernel | The AI Search Engine You Control
I just found out why it was happening. The colab runtime RAM was being consumed entirely while running through the last cell. It...
Read more >Use TPUs | TensorFlow Core
Before you run this Colab notebook, make sure that your hardware accelerator is a TPU by checking your notebook settings: Runtime > Change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Araffin,
You are right, in fact I already had it figured out in the past and your feedback triggered me to find it back. Leaving some notes for maybe helping other people
First run
Next:
The link will bring you to the tensorboard.
Found it: when you put it on accelerator = GPU (iso none). Then the last model.learn(2000) line crashes.