python/ray/serve/deployment_state.py
def resource_requirements(self) -> Tuple[str, str]:
        """Returns required and currently available resources.

        Only resources with nonzero requirements will be included in the
        required dict and only resources in the required dict will be
        included in the available dict (filtered for relevance).
        """
        # NOTE(edoakes):
        if self._actor.actor_resources is None:
            return "UNKNOWN", "UNKNOWN"

        required = {
            k: v
            for k, v in self._actor.actor_resources.items()
            if v is not None and v > 0
        }
        available = {
            k: v for k, v in self._actor.available_resources.items() if k in required
        }
        return str(required), str(available)
Returns required and currently available resources.

        Only resources with nonzero requirements will be included in the
        required dict and only resources in the required dict will be
        included in the available dict (filtered for relevance).
        
Returns required and currently available resources.
Only resources with nonzero requirements will be included in the
required dict and only resources in the required dict will be
included in the available dict (filtered for relevance).
Returns required and currently available resources . Only resources with nonzero requirements will be included in the required dict and only resources in the required dict will be included in the available dict ( filtered for relevance ) .
def resource_requirements(self) -> Tuple[str, str]:
        if self._actor.actor_resources is None:
            return "UNKNOWN", "UNKNOWN"
        required = {
            k: v
            for k, v in self._actor.actor_resources.items()
            if v is not None and v > 0
        }
        available = {
            k: v for k, v in self._actor.available_resources.items() if k in required
        }
        return str(required), str(available)
def resource_requirements ( self ) -> Tuple [ str , str ] : if self . _actor . actor_resources is None : return "UNKNOWN" , "UNKNOWN" required = { k : v for k , v in self . _actor . actor_resources . items ( ) if v is not None and v > 0 } available = { k : v for k , v in self . _actor . available_resources . items ( ) if k in required } return str ( required ) , str ( available )
Returns required and currently available resources.
Returns required and currently available resources .
"""Returns required and currently available resources.

        Only resources with nonzero requirements will be included in the
        required dict and only resources in the required dict will be
        included in the available dict (filtered for relevance).
        """ # NOTE(edoakes):
self