Skip to content

Commit

Permalink
fix: 🐛 Fix LocalTorch distribute_workers
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed May 29, 2024
1 parent a3a8f1e commit 1b90080
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dacapo/compute_context/compute_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@


class ComputeContext(ABC):
distribute_workers: Optional[bool] = attr.ib(
default=False,
metadata={
"help_text": "Whether to distribute the workers across multiple nodes or processes."
},
)
"""
The ComputeContext class is an abstract base class for defining the context in which computations are to be done.
It is inherited from the built-in class `ABC` (Abstract Base Classes). Other classes can inherit this class to define
Expand Down
6 changes: 6 additions & 0 deletions dacapo/compute_context/local_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class LocalTorch(ComputeContext):
The class is a subclass of the ComputeContext class.
"""

distribute_workers: Optional[bool] = attr.ib(
default=False,
metadata={
"help_text": "Whether to distribute the workers across multiple nodes or processes."
},
)
_device: Optional[str] = attr.ib(
default=None,
metadata={
Expand Down

0 comments on commit 1b90080

Please sign in to comment.