python/ray/tune/schedulers/resource_changing_scheduler.py
def _get_used_cpus_and_gpus(self, t: Trial) -> Tuple[float, float]:
        """Check how many CPUs and GPUs a trial is using currently"""
        return (
            t.placement_group_factory.required_resources.get("CPU", 0),
            t.placement_group_factory.required_resources.get("GPU", 0),
        )
Check how many CPUs and GPUs a trial is using currently
Check how many CPUs and GPUs a trial is using currently
Check how many CPUs and GPUs a trial is using currently
def _get_used_cpus_and_gpus(self, t: Trial) -> Tuple[float, float]:
        return (
            t.placement_group_factory.required_resources.get("CPU", 0),
            t.placement_group_factory.required_resources.get("GPU", 0),
        )
def _get_used_cpus_and_gpus ( self , t : Trial ) -> Tuple [ float , float ] : return ( t . placement_group_factory . required_resources . get ( "CPU" , 0 ) , t . placement_group_factory . required_resources . get ( "GPU" , 0 ) , )
Check how many CPUs and GPUs a trial is using currently
Check how many CPUs and GPUs a trial is using currently
"""Check how many CPUs and GPUs a trial is using currently"""
self
t
Trial