python/ray/tune/schedulers/resource_changing_scheduler.py
def _get_resources_from_bundles(
        self, bundles: List[Dict[str, float]]
    ) -> Dict[str, float]:
        """Get total sums of resources in bundles"""
        if not bundles:
            return {"CPU": 0, "GPU": 0}
        pgf = PlacementGroupFactory(bundles)
        return pgf.required_resources
Get total sums of resources in bundles
Get total sums of resources in bundles
Get total sums of resources in bundles
def _get_resources_from_bundles(
        self, bundles: List[Dict[str, float]]
    ) -> Dict[str, float]:
        if not bundles:
            return {"CPU": 0, "GPU": 0}
        pgf = PlacementGroupFactory(bundles)
        return pgf.required_resources
def _get_resources_from_bundles ( self , bundles : List [ Dict [ str , float ] ] ) -> Dict [ str , float ] : if not bundles : return { "CPU" : 0 , "GPU" : 0 } pgf = PlacementGroupFactory ( bundles ) return pgf . required_resources
Get total sums of resources in bundles
Get total sums of resources in bundles
"""Get total sums of resources in bundles"""
self
bundles
List[Dict[str, float]]