File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
experiment-runner/Plugins Expand file tree Collapse file tree 3 files changed +6
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ pip install codecarbon
2222To simply measure CO2 emissions (kg) and total energy consumed (kWh) and append them as data columns, use the following snippet:
2323
2424``` python
25- from Plugins import CodecarbonWrapper
26- from Plugins.CodecarbonWrapper import DataColumns as CCDataCols
25+ from Plugins.Profilers import CodecarbonWrapper
26+ from Plugins.Profilers. CodecarbonWrapper import DataColumns as CCDataCols
2727
2828@CodecarbonWrapper.emission_tracker (
2929 data_columns = [CCDataCols.EMISSIONS , CCDataCols.ENERGY_CONSUMED ],
@@ -38,8 +38,8 @@ This will add `codecarbon__emissions` and `codecarbon__energy_consumed` data col
3838For a more fine-grained approach, the above snippet is equivalent to the following:
3939
4040``` python
41- from Plugins import CodecarbonWrapper
42- from Plugins.CodecarbonWrapper import DataColumns as CCDataCols
41+ from Plugins.Profilers import CodecarbonWrapper
42+ from Plugins.Profilers. CodecarbonWrapper import DataColumns as CCDataCols
4343
4444class RunnerConfig :
4545
Original file line number Diff line number Diff line change 1010from ConfigValidator .Config .RunnerConfig import RunnerConfig
1111from ProgressManager .Output .OutputProcedure import OutputProcedure as output
1212
13- from Plugins import CodecarbonWrapper
14- from Plugins .CodecarbonWrapper import DataColumns as CCDataCols
13+ from Plugins . Profilers import CodecarbonWrapper
14+ from Plugins .Profilers . CodecarbonWrapper import DataColumns as CCDataCols
1515
1616
1717class TestEmissionTrackerIndividual (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments