python/ray/tune/tune.py
def _ray_auto_init():
    """Initialize Ray unless already configured."""
    if os.environ.get("TUNE_DISABLE_AUTO_INIT") == "1":
        logger.info("'TUNE_DISABLE_AUTO_INIT=1' detected.")
    elif not ray.is_initialized():
        logger.info(
            "Initializing Ray automatically."
            "For cluster usage or custom Ray initialization, "
            "call `ray.init(...)` before `tune.run`."
        )
        ray.init()
Initialize Ray unless already configured.
Initialize Ray unless already configured.
Initialize Ray unless already configured .
def _ray_auto_init():
    if os.environ.get("TUNE_DISABLE_AUTO_INIT") == "1":
        logger.info("'TUNE_DISABLE_AUTO_INIT=1' detected.")
    elif not ray.is_initialized():
        logger.info(
            "Initializing Ray automatically."
            "For cluster usage or custom Ray initialization, "
            "call `ray.init(...)` before `tune.run`."
        )
        ray.init()
def _ray_auto_init ( ) : if os . environ . get ( "TUNE_DISABLE_AUTO_INIT" ) == "1" : logger . info ( "'TUNE_DISABLE_AUTO_INIT=1' detected." ) elif not ray . is_initialized ( ) : logger . info ( "Initializing Ray automatically." "For cluster usage or custom Ray initialization, " "call `ray.init(...)` before `tune.run`." ) ray . init ( )
Initialize Ray unless already configured.
Initialize Ray unless already configured .
"""Initialize Ray unless already configured."""