gigl.env.get_resource_config#

gigl.env.pipelines_config.get_resource_config(resource_config_uri: Uri | None = None) GiglResourceConfigWrapper#

Function call to return a resource config wrapper object Usage:

resource_config = get_resource_config() print(resource_config.trainer_config)

Args:
resource_config_uri: Optional[Uri] = None

The URI of the resource config file. If None, the function will try to load the resource config from the command-line argument –resource_config_uri or the environment variable RESOURCE_CONFIG_PATH. If these are not set, the function will try to load the resource config from the pipeline options.

Returns:
resource_config: GiglResourceConfigWrapper

The resource config wrapper object