Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions autogalaxy/analysis/analysis/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def setup_is_default(self) -> bool:
def adopt_backend(self, use_jax: bool):
"""
Drop the default setup and run on the backend `use_jax` a `FactorGraphModel` chose for its factors
(`af.Analysis.adopt_backend`), because the factors' default setups disagree.
(`af.Analysis.adopt_backend`), because the factors' default setups disagree or the graph's own
`use_jax` (or a factor the user configured) sets the backend.

The analysis moves to the manual opt-out path, as if constructed with `use_jax=use_jax`: the setup
input and resolved setup are cleared (no `files/setup.json` is written), the backend is `use_jax`
Expand Down Expand Up @@ -107,7 +108,7 @@ def adopt_backend(self, use_jax: bool):
)
logger.info(
f"Compute setup: not set (the factor graph runs every factor left on the default setup on "
f"{backend}, as their default setups disagree{chose}; pass the same setup= to every "
f"{backend}, so all its factors share one backend{chose}; pass the same setup= to every "
f"factor to choose one)"
)

Expand Down
Loading