-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Power vs. Energy in CodeCarbon Calculations #654
Comments
Thanks for reporting this. We try to consistently use |
Actually, after a quick review, I couldn't find out if they are dealt with differently and what the tracker returns: power or energy. I assumed power, but for confirmation, I had a quick review and couldn't find it |
We return the sum of energy, we also return power but it will be the last power, not the mean of all measured power : codecarbon/codecarbon/emissions_tracker.py Line 711 in e6d1ca5
|
Is there any possibility to get the mean of all power for a specific task same like we get the energy? |
You could divide the energy by the duration to get the mean power. So I don't know if implementing a mean by adding a sum and a counter make sense. |
According to the question about mean power: isn't cpu_power, gpu_power and ram_power the average use of Watt per second? So if I add these 3 values, I am getting the average power for gpu, cpu and ram per second? |
Looking at the code, I think it's only the last measured power that is stored. |
Description
How does CodeCarbon differentiate between 'power' and 'energy' in its calculations? Could someone clarify how CodeCarbon handles these two concepts?
What I Did
After a quick search, I got the feeling that these terms are used interchangeably in some contexts.
The text was updated successfully, but these errors were encountered: