mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.11k stars 173 forks source link

Print results into console on error #678

Closed headscott closed 3 hours ago

headscott commented 5 days ago

Description

Is it possible, to print all results into console if it crashes before it can put the results into the csv file? If it is not possible right now, could it be added?

What I Did

I was just running a code for many hours, but it crashed after finishing the code, which I wanted to track due to an error while putting the results into the csv files.

benoit-cty commented 4 hours ago

Hello,

You could do some things about it :

headscott commented 3 hours ago

Oh, okay thank you. I think this should work