Energy consumption of convolutional neural networks

Hello!

I want to measure the energy and power consumed by my CNN. Can anyone please help me or suggest any ways of achieving it ?

Thank you in advance!

One very simplistic way - assuming you use a NVidia GPU - could be to repeately call nvidia-smi and record the power consumption reported there and then “integrate” (i.e. if you measure every 100ms, sum and divide by 10 to get the energy in Joule). This is less then scientific and neglects data loading or more generally anyting outside the GPU in addition to inaccuracies of the (indicative) reporting.

Best regards

Thomas

Okay, thanks for your response : )
But is there any way that I can do it using code like any package or framework that has this functionality ?