Energy consumed by convolutionl neural network

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!

There are devices like Kill-A-Watt that plug in between the wall and your device and measure the energy consumption. Then you could do a comparison of energy consumed for your system at rest versus while running the CNN.

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