mirror of
https://github.com/vale981/ray
synced 2025-03-12 22:26:39 -04:00
10 lines
235 B
Python
10 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()}
|