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

Added type hints and docstring to GPUDevice #631

Closed MyGodItsFull0fStars closed 1 month ago

MyGodItsFull0fStars commented 1 month ago

I added type hints and a docstring for the GPUDevice dataclass.

To comply with support for Python 3.8 I used the typing library instead of the type hints supported from Python 3.9 onward.

vercel[bot] commented 1 month ago

@MyGodItsFull0fStars is attempting to deploy a commit to the Code Carbon Team on Vercel.

A member of the Team first needs to authorize it.