MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

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
Functionadd_emission
( emission: EmissionCreate, emission_service: EmissionService = Depends( Provide[ServerContain
carbonserver/carbonserver/api/routers/emissions.py:41
Methodadd_emission
Save an emission to the database. :emission: An Emission in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_emissions.py:25
Functionadd_experiment
( experiment: ExperimentCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDepen
carbonserver/carbonserver/api/routers/experiments.py:33
Methodadd_experiment
(self, experiment: ExperimentCreate)
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:19
Functionadd_organization
( organization: OrganizationCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthD
carbonserver/carbonserver/api/routers/organizations.py:39
Methodadd_organization
(self, organization: OrganizationCreate)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:37
Methodadd_organization
(self, organization: schemas.OrganizationCreate)
carbonserver/carbonserver/api/domain/organizations.py:8
Functionadd_project
( project: ProjectCreate, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency)
carbonserver/carbonserver/api/routers/projects.py:33
Methodadd_project
(self, project: ProjectCreate)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:20
Functionadd_project_token
( project_id: str, project_token: ProjectTokenCreate, auth_user: UserWithAuthDependency = Depends(
carbonserver/carbonserver/api/routers/project_api_tokens.py:28
Methodadd_project_token
(self, project_token: ProjectTokenInternal)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:23
Functionadd_run
( run: RunCreate, run_service: RunService = Depends(Provide[ServerContainer.run_service]), project
carbonserver/carbonserver/api/routers/runs.py:32
Methodadd_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
Functionadd_telemetry
( telemetry: TelemetryCreate, telemetry_service: TelemetryService = Depends( Provide[ServerCon
carbonserver/carbonserver/api/routers/telemetry.py:25
Methodadd_telemetry
(self, telemetry: TelemetryCreate)
carbonserver/carbonserver/api/infra/repositories/repository_telemetry.py:20
Methodadd_user_to_organization
( self, user_id: str, organization_id: str )
carbonserver/carbonserver/api/domain/memberships.py:8
Functionapi_get
ex: test-api
codecarbon/cli/main.py:113
Methodapple_silicon_side_effect
(hardware, *args, **kwargs)
tests/test_emissions_tracker.py:634
Functionauth_callback
( request: Request, response: Response, code: str = Query(...), auth_provider: Optional[OIDCAu
carbonserver/carbonserver/api/routers/authenticate.py:46
Functionauth_context
()
carbonserver/tests/api/service/test_auth_context.py:30
Functionbuild_model
()
examples/mnist_inference.py:13
Functionbuild_model
(hp)
examples/mnist_random_search.py:16
Functionbuild_model
()
examples/mnist_grid_search.py:8
Methodcan_write_organization
(self, organization_id: UUID, user: User)
carbonserver/carbonserver/api/services/auth_context.py:47
Methodcarbon_intensity_per_source_path
Get the path from the package resources.
codecarbon/input.py:102
Methodcheck_auth
(self)
tests/cli/test_cli_main.py:165
Functioncheck_login
return user data or redirect to login screen null value if not logged in
carbonserver/carbonserver/api/routers/authenticate.py:32
Functioncheck_one
(url: str)
scripts/check_docs_links.py:245
Functionclean_amd_cpu_name
(name)
codecarbon/data/hardware/cpu_dataset_builder/merge_scrapped_cpu_power.py:57
Functionclean_intel_cpu_name
(name)
codecarbon/data/hardware/cpu_dataset_builder/merge_scrapped_cpu_power.py:32
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_project_tokens.py:54
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_projects.py:50
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_runs.py:93
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_authenticate.py:29
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_organizations.py:69
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_users.py:68
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_telemetry.py:40
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_experiments.py:118
Functionclient
(custom_test_server)
carbonserver/tests/api/routers/test_emissions.py:111
Functionclient_with_auth
(custom_test_server_with_auth)
carbonserver/tests/api/routers/test_projects.py:55
Methodclose_experiment
Tell the API that the experiment has ended.
codecarbon/core/api_client.py:355
Methodcloud_emissions_path
Resource Extraction from a package https://setuptools.readthedocs.io/en/latest/pkg_resources.html#resource-extraction
codecarbon/input.py:92
← previousnext →801–900 of 1,889, ranked by callers