Skip to content

Commit

Permalink
Revert "Default to using McBackend"
Browse files Browse the repository at this point in the history
This reverts commit 1988b65.
  • Loading branch information
ricardoV94 authored and michaelosthege committed Mar 2, 2023
1 parent 1988b65 commit 2f945bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymc/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

HAS_MCB = False
try:
from mcbackend import Backend, NumPyBackend, Run
from mcbackend import Backend, Run

from pymc.backends.mcbackend import init_chain_adapters

Expand Down Expand Up @@ -123,8 +123,6 @@ def init_traces(
model: Model,
) -> Tuple[Optional[RunType], Sequence[IBaseTrace]]:
"""Initializes a trace recorder for each chain."""
if HAS_MCB and backend is None:
backend = NumPyBackend(preallocate=expected_length)
if HAS_MCB and isinstance(backend, Backend):
return init_chain_adapters(
backend=backend,
Expand Down

0 comments on commit 2f945bb

Please sign in to comment.