otx.cli.utils.experiment#
Utils function for experiments.
Classes
CPU usage recorder class. |
|
|
GPU usage recorder class. |
Base calss for each resource recorder. |
|
|
Class to track resources usage. |
- class otx.cli.utils.experiment.CpuUsageRecorder[source]#
Bases:
ResourceRecorder
CPU usage recorder class.
- Parameters:
Optional[psutil.Process] (target_process) – Process to track.
- class otx.cli.utils.experiment.GpuUsageRecorder(gpu_ids: List[int] | None = None)[source]#
Bases:
ResourceRecorder
GPU usage recorder class.
- Parameters:
Optional[List[int]] (gpu_ids) – GPU indices to record. If not given, first GPU is recorded.
- class otx.cli.utils.experiment.ResourceRecorder[source]#
Bases:
ABC
Base calss for each resource recorder.