dacapo.compute_context.bsub
Classes
Helper class that provides a standard way to create an ABC using |
Module Contents
- class dacapo.compute_context.bsub.Bsub
Helper class that provides a standard way to create an ABC using inheritance.
- distribute_workers: bool | None
The Bsub class is a subclass of the ComputeContext class. It is used to specify the context in which computations are to be done. Bsub is used to specify that computations are to be done on a cluster using LSF.
- queue
The queue to run on.
- Type:
str
- num_gpus
The number of gpus to train on. Currently only 1 gpu can be used.
- Type:
int
- num_cpus
The number of cpus to use to generate training data.
- Type:
int
- billing
Project name that will be paying for this Job.
- Type:
Optional[str]
- device()
Returns the device on which computations are to be done.
- _wrap_command(command)
Wraps a command in the context specific command.
Note
The class is a subclass of the ComputeContext class.
- queue: str
- num_gpus: int
- num_cpus: int
- property device
A property method that returns the device on which computations are to be done.
A device can be a CPU, GPU, TPU, etc. It is used to specify the context in which computations are to be done.
- Returns:
The device on which computations are to be done.
- Return type:
str
Examples
>>> context = Bsub() >>> device = context.device