BackendConfig#
- class ray.train.backend.BackendConfig#
Bases:
objectParent class for configurations of training backend.
DeveloperAPI: This API may change across minor Ray releases.
- property framework#
The training framework this config sets up.
Noneon the base class.
- to_dict() Dict[str, Any][source]#
Returns serializable dictionary representation of the backend config. Subclasses can override this to expose framework-specific configuration.
The fields here are used for state export of the backend config. If a field is not serializable, it should be excluded.
- property train_func_context#
The context manager class wrapping each worker’s training function.
The base class uses
contextlib.nullcontext, which does nothing.