rllib/agents/trainer_config.py
def python_environment(
        self,
        *,
        extra_python_environs_for_driver: Optional[dict] = None,
        extra_python_environs_for_worker: Optional[dict] = None,
    ) -> "TrainerConfig":
        """Sets the config's python environment settings.

        Args:
            extra_python_environs_for_driver: Any extra python env vars to set in the
                trainer process, e.g., {"OMP_NUM_THREADS": "16"}.
            extra_python_environs_for_worker: The extra python environments need to set
                for worker processes.

        Returns:
            This updated TrainerConfig object.
        """
        if extra_python_environs_for_driver is not None:
            self.extra_python_environs_for_driver = extra_python_environs_for_driver
        if extra_python_environs_for_worker is not None:
            self.extra_python_environs_for_worker = extra_python_environs_for_worker
        return self
Sets the config's python environment settings.

        Args:
            extra_python_environs_for_driver: Any extra python env vars to set in the
                trainer process, e.g., {"OMP_NUM_THREADS": "16"}.
            extra_python_environs_for_worker: The extra python environments need to set
                for worker processes.

        Returns:
            This updated TrainerConfig object.
        
Sets the config's python environment settings.
Sets the config ' s python environment settings .
def python_environment(
        self,
        *,
        extra_python_environs_for_driver: Optional[dict] = None,
        extra_python_environs_for_worker: Optional[dict] = None,
    ) -> "TrainerConfig":
        if extra_python_environs_for_driver is not None:
            self.extra_python_environs_for_driver = extra_python_environs_for_driver
        if extra_python_environs_for_worker is not None:
            self.extra_python_environs_for_worker = extra_python_environs_for_worker
        return self
def python_environment ( self , * , extra_python_environs_for_driver : Optional [ dict ] = None , extra_python_environs_for_worker : Optional [ dict ] = None , ) -> "TrainerConfig" : if extra_python_environs_for_driver is not None : self . extra_python_environs_for_driver = extra_python_environs_for_driver if extra_python_environs_for_worker is not None : self . extra_python_environs_for_worker = extra_python_environs_for_worker return self
Sets the config's python environment settings.
Sets the config ' s python environment settings .
"""Sets the config's python environment settings.

        Args:
            extra_python_environs_for_driver: Any extra python env vars to set in the
                trainer process, e.g., {"OMP_NUM_THREADS": "16"}.
            extra_python_environs_for_worker: The extra python environments need to set
                for worker processes.

        Returns:
            This updated TrainerConfig object.
        """
This updated TrainerConfig object.
This updated TrainerConfig object .
self
extra_python_environs_for_driver
Optional[dict]
Any extra python env vars to set in the
trainer process, e.g., {"OMP_NUM_THREADS": "16"}.
Any extra python env vars to set in the trainer process e . g . { " OMP_NUM_THREADS " : " 16 " } .
extra_python_environs_for_worker
Optional[dict]
The extra python environments need to set
for worker processes.
The extra python environments need to set for worker processes .