python/ray/tune/schedulers/resource_changing_scheduler.py
def _are_resources_the_same(
        self,
        trial: Trial,
        new_resources,
    ) -> bool:
        """Returns True if trial's resources are value equal to new_resources.

        Only checks for PlacementGroupFactories at this moment.
        """
        if (
            isinstance(new_resources, PlacementGroupFactory)
            and trial.placement_group_factory == new_resources
        ):
            logger.debug(
                f"{trial} PGF "
                f"{trial.placement_group_factory.required_resources}"
                f" and {new_resources.required_resources}"
                f" are the same, skipping"
            )
            return True
        else:
            return False
Returns True if trial's resources are value equal to new_resources.

        Only checks for PlacementGroupFactories at this moment.
        
Returns True if trial's resources are value equal to new_resources.
Only checks for PlacementGroupFactories at this moment.
Returns True if trial ' s resources are value equal to new_resources . Only checks for PlacementGroupFactories at this moment .
def _are_resources_the_same(
        self,
        trial: Trial,
        new_resources,
    ) -> bool:
        if (
            isinstance(new_resources, PlacementGroupFactory)
            and trial.placement_group_factory == new_resources
        ):
            logger.debug(
                f"{trial} PGF "
                f"{trial.placement_group_factory.required_resources}"
                f" and {new_resources.required_resources}"
                f" are the same, skipping"
            )
            return True
        else:
            return False
def _are_resources_the_same ( self , trial : Trial , new_resources , ) -> bool : if ( isinstance ( new_resources , PlacementGroupFactory ) and trial . placement_group_factory == new_resources ) : logger . debug ( f"{trial} PGF " f"{trial.placement_group_factory.required_resources}" f" and {new_resources.required_resources}" f" are the same, skipping" ) return True else : return False
Returns True if trial's resources are value equal to new_resources.
Returns True if trial ' s resources are value equal to new_resources .
"""Returns True if trial's resources are value equal to new_resources.

        Only checks for PlacementGroupFactories at this moment.
        """
self
trial
Trial
new_resources