Skip to content

Commit

Permalink
suppress warnings for jax initialize backend
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshitakaMo committed Jan 23, 2024
1 parent 941feec commit 164f3f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion colabfold/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@
logger = logging.getLogger(__name__)
import jax
import jax.numpy as jnp
logging.getLogger('jax._src.lib.xla_bridge').addFilter(lambda _: False)

# from jax 0.4.6, jax._src.lib.xla_bridge moved to jax._src.xla_bridge
# suppress warnings: Unable to initialize backend 'rocm' or 'tpu'
logging.getLogger('jax._src.xla_bridge').addFilter(lambda _: False) # before jax 0.4.5
logging.getLogger('jax._src.lib.xla_bridge').addFilter(lambda _: False) # from jax 0.4.6

def mk_mock_template(
query_sequence: Union[List[str], str], num_temp: int = 1
Expand Down

0 comments on commit 164f3f8

Please sign in to comment.