Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ functions
Functions
1,889 in github.com/mlco2/codecarbon
⨍
Functions
1,889
◇
Types & classes
328
↳
Endpoints
162
Method
__init__
(self)
tests/test_gpu_amd.py:548
Method
__init__
(self, *args, **kwargs)
tests/cli/test_monitor.py:10
Method
__init__
(self, **kwargs)
tests/cli/test_monitor.py:67
Method
__init__
(self, **kwargs)
tests/cli/test_monitor.py:98
Method
__init__
(self, endpoint_url=None)
tests/cli/test_cli_main.py:12
Method
__init__
(self, endpoint_url=None)
tests/cli/test_cli_main.py:49
Method
__init__
(self, **kwargs)
tests/cli/test_cli_main.py:282
Method
__init__
(self, codecarbon_tracker)
examples/mnist_callback.py:13
Method
__init__
(self)
examples/compare_cpu_load_and_RAPL.py:121
Method
__init__
(self)
examples/pytorch-multigpu-example.py:13
Method
__init__
(self)
examples/rapl/intel_rapl_show.py:59
Method
__init__
(self)
examples/rapl/intel_rapl_show.py:183
Method
__mul__
(self, factor: float)
codecarbon/core/units.py:92
Method
__mul__
(self, factor: float)
codecarbon/core/units.py:156
Method
__post_init__
(self)
codecarbon/core/rapl.py:24
Method
__post_init__
(self)
codecarbon/core/gpu_device.py:37
Method
__post_init__
(self)
codecarbon/core/units.py:64
Method
__post_init__
(self)
codecarbon/external/hardware.py:65
Method
__repr__
(self)
codecarbon/external/hardware.py:60
Method
__repr__
(self)
codecarbon/external/hardware.py:223
Method
__repr__
(self)
codecarbon/external/hardware.py:468
Method
__repr__
(self)
codecarbon/external/geography.py:81
Method
__repr__
(self)
carbonserver/carbonserver/api/schemas.py:26
Method
__repr__
(self)
carbonserver/carbonserver/api/schemas.py:35
Method
__repr__
(self)
carbonserver/carbonserver/api/schemas.py:52
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:31
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:65
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:106
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:134
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:166
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:182
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/sql_models.py:210
Method
__repr__
(self)
carbonserver/carbonserver/api/infra/database/telemetry_sql_models.py:99
Method
__repr__
(self)
examples/compare_cpu_load_and_RAPL.py:139
Method
__sub__
(self, other: "Energy")
codecarbon/core/units.py:86
Method
__truediv__
(self, divisor: float)
codecarbon/core/units.py:100
Method
__truediv__
(self, divisor: float)
codecarbon/core/units.py:159
Method
_get_cloud_metadata
(self)
codecarbon/emissions_tracker.py:1378
Method
_get_compute_mode
Returns the compute mode of the GPU https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceEnumvs.html#group__nvmlDeviceEnumvs_1gbed1b88f2e3
codecarbon/core/gpu_nvidia.py:112
Method
_get_compute_processes
Returns the list of processes ids having a compute context on the device with the memory used https://docs.nvidia.com/deploy/nvml-api/group__n
codecarbon/core/gpu_nvidia.py:118
Method
_get_energy
Get Chip part energy deltas Args: chip_part (str): Chip part to get power from (Processor, GPU, etc.) :return: en
codecarbon/external/hardware.py:491
Method
_get_geo_metadata
(self)
codecarbon/emissions_tracker.py:1353
Method
_get_geo_metadata
(self)
codecarbon/emissions_tracker.py:1375
Method
_get_gpu_name
Returns the name of the GPU device https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1ga5361803e0
codecarbon/core/gpu_nvidia.py:56
Method
_get_gpu_utilization
Returns the % of utilization of the kernels during the last sample https://docs.nvidia.com/deploy/nvml-api/structnvmlUtilization__t.html#struc
codecarbon/core/gpu_nvidia.py:106
Method
_get_graphics_processes
Returns the list of processes ids having a graphics context on the device with the memory used https://docs.nvidia.com/deploy/nvml-api/group__
codecarbon/core/gpu_nvidia.py:125
Method
_get_memory_info
Returns memory info in bytes https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g2dfeb1db82aa1de9
codecarbon/core/gpu_nvidia.py:73
Method
_get_power_limit
Returns max power usage in Watts https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g263b5bf552d5
codecarbon/core/gpu_nvidia.py:95
Method
_get_power_usage
Returns power usage in Watts https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g7ef7dff0ff14238d
codecarbon/core/gpu_nvidia.py:89
Method
_get_temperature
Returns degrees in the Celsius scale https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g92d1c518
codecarbon/core/gpu_nvidia.py:83
Method
_get_total_energy_consumption
Returns total energy consumption for this GPU in millijoules (mJ) since the driver was last reloaded https://docs.nvidia.com/deploy/nvml-api/g
codecarbon/core/gpu_nvidia.py:44
Method
_get_uuid
Returns the globally unique GPU device UUID https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g7
codecarbon/core/gpu_nvidia.py:66
Method
_handle_exit
Ensures the lock file is removed when the script is interrupted.
codecarbon/lock.py:37
Method
_init_static_details
(self)
codecarbon/core/gpu_amd.py:53
Method
_patched_import
(name, *args, **kwargs)
tests/test_gpu_amd.py:418
Method
_run
(self)
codecarbon/external/scheduler.py:40
Function
_run_computation_on_device
Run computation on a single device for the specified duration.
examples/slurm_rocm/pytorch_matrix.py:149
Function
_version_callback
(value: bool)
codecarbon/cli/main.py:50
Function
add_emission
( emission: EmissionCreate, emission_service: EmissionService = Depends( Provide[ServerContain
carbonserver/carbonserver/api/routers/emissions.py:41
Method
add_emission
Save an emission to the database. :emission: An Emission in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_emissions.py:25
Function
add_experiment
( experiment: ExperimentCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDepen
carbonserver/carbonserver/api/routers/experiments.py:33
Method
add_experiment
(self, experiment: ExperimentCreate)
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:19
Function
add_organization
( organization: OrganizationCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthD
carbonserver/carbonserver/api/routers/organizations.py:39
Method
add_organization
(self, organization: OrganizationCreate)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:37
Method
add_organization
(self, organization: schemas.OrganizationCreate)
carbonserver/carbonserver/api/domain/organizations.py:8
Function
add_project
( project: ProjectCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency)
carbonserver/carbonserver/api/routers/projects.py:33
Method
add_project
(self, project: ProjectCreate)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:20
Function
add_project_token
( project_id: str, project_token: ProjectTokenCreate, auth_user: UserWithAuthDependency = Depends(
carbonserver/carbonserver/api/routers/project_api_tokens.py:28
Method
add_project_token
(self, project_token: ProjectTokenInternal)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:23
Function
add_run
( run: RunCreate, run_service: RunService = Depends(Provide[ServerContainer.run_service]), project
carbonserver/carbonserver/api/routers/runs.py:32
Method
add_run
Save an Run to the database. :run: An Run in pyDantic BaseModel format. :returns: An Run in SQLAlchemy Model format. :rtype: m
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:27
Function
add_telemetry
( telemetry: TelemetryCreate, telemetry_service: TelemetryService = Depends( Provide[ServerCon
carbonserver/carbonserver/api/routers/telemetry.py:25
Method
add_telemetry
(self, telemetry: TelemetryCreate)
carbonserver/carbonserver/api/infra/repositories/repository_telemetry.py:20
Method
add_user_to_organization
( self, user_id: str, organization_id: str )
carbonserver/carbonserver/api/domain/memberships.py:8
Function
api_get
ex: test-api
codecarbon/cli/main.py:113
Method
apple_silicon_side_effect
(hardware, *args, **kwargs)
tests/test_emissions_tracker.py:634
Function
auth_callback
( request: Request, response: Response, code: str = Query(...), auth_provider: Optional[OIDCAu
carbonserver/carbonserver/api/routers/authenticate.py:46
Function
auth_context
()
carbonserver/tests/api/service/test_auth_context.py:30
Function
build_model
()
examples/mnist_inference.py:13
Function
build_model
(hp)
examples/mnist_random_search.py:16
Function
build_model
()
examples/mnist_grid_search.py:8
Method
can_write_organization
(self, organization_id: UUID, user: User)
carbonserver/carbonserver/api/services/auth_context.py:47
Method
carbon_intensity_per_source_path
Get the path from the package resources.
codecarbon/input.py:102
Method
check_auth
(self)
tests/cli/test_cli_main.py:165
Function
check_login
return user data or redirect to login screen null value if not logged in
carbonserver/carbonserver/api/routers/authenticate.py:32
Function
check_one
(url: str)
scripts/check_docs_links.py:245
Function
clean_amd_cpu_name
(name)
codecarbon/data/hardware/cpu_dataset_builder/merge_scrapped_cpu_power.py:57
Function
clean_intel_cpu_name
(name)
codecarbon/data/hardware/cpu_dataset_builder/merge_scrapped_cpu_power.py:32
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_project_tokens.py:54
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_projects.py:50
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_runs.py:93
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_authenticate.py:29
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_organizations.py:69
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_users.py:68
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_telemetry.py:40
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_experiments.py:118
Function
client
(custom_test_server)
carbonserver/tests/api/routers/test_emissions.py:111
Function
client_with_auth
(custom_test_server_with_auth)
carbonserver/tests/api/routers/test_projects.py:55
Method
close_experiment
Tell the API that the experiment has ended.
codecarbon/core/api_client.py:355
Method
cloud_emissions_path
Resource Extraction from a package https://setuptools.readthedocs.io/en/latest/pkg_resources.html#resource-extraction
codecarbon/input.py:92
← previous
next →
801–900 of 1,889, ranked by callers