Skip to content

Commit 0e3c278

Browse files
Fix/codecarbon (#242)
* fix name * fix dependencies * Update optimizer_config.schema.json * change versions --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ac958b4 commit 0e3c278

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

autointent/_callbacks/emissions_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class EmissionsTrackerCallback(OptimizerCallback):
1414
"""Class for tracking energy consumption and carbon emissions."""
1515

16-
name = "emissions_tracker"
16+
name = "codecarbon"
1717

1818
current_module_name: str | None = None
1919

docs/optimizer_config.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@
421421
"enum": [
422422
"wandb",
423423
"tensorboard",
424-
"emissions_tracker"
424+
"codecarbon"
425425
],
426426
"type": "string"
427427
},

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ wandb = [
9494
]
9595
codecarbon = [
9696
"codecarbon (>=3.0.2, <3.1.0)",
97+
"pynvml (>=8.0.4, <12.0.0)", # to avoid "attribute nvmlDeviceGetTotalEnergyConsumption not found" error
9798
]
9899

99100
[project.urls]

0 commit comments

Comments
 (0)