Get a Ray actor for the trainer.
(cls, config: Config)
| 290 | |
| 291 | @classmethod |
| 292 | def get_actor(cls, config: Config): |
| 293 | """Get a Ray actor for the trainer.""" |
| 294 | return ( |
| 295 | ray.remote(cls) |
| 296 | .options(name=config.trainer.name, namespace=config.ray_namespace) |
| 297 | .remote(config) |
| 298 | ) |
| 299 | |
| 300 | |
| 301 | class TrainEngineWrapper(ABC): |