mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
9 lines
235 B
Python
9 lines
235 B
Python
from ray.rllib.connectors.connector import (
|
|
Connector,
|
|
get_connector,
|
|
)
|
|
from typing import Dict
|
|
|
|
|
|
def get_connectors_from_cfg(config: dict) -> Dict[str, Connector]:
|
|
return {k: get_connector(*v) for k, v in config.items()}
|