dasf.ml.dl.clusters
Submodules
Classes
Create a Dask Cluster environment for workers |
Package Contents
- class dasf.ml.dl.clusters.DaskClusterEnvironment(metadata=None)[source]
Bases:
pytorch_lightning.plugins.environments.ClusterEnvironment
Create a Dask Cluster environment for workers
Parameters
- metadatadict
Dictionary containing all data related to workers.
Constructor of the object DaskClusterEnvironment using dict metadata.
- _master_port = 23456
- detect()[source]
Detect if important data are present into metadata dictionary.
Returns
bool : if they are present or not.
- Return type:
bool
- property creates_processes_externally: bool
Return True if the cluster is managed (you don’t launch processes yourself).
- Return type:
bool
- property main_address: str
Return master worker address.
- Return type:
str
- property main_port: int
Return master worker port.
- Return type:
int