From 2f945bb6cc6715af0300cf73a4e34eba84257cce Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Thu, 2 Mar 2023 17:54:07 +0100 Subject: [PATCH] Revert "Default to using McBackend" This reverts commit 1988b6581b2ec35898e0864fb2ccac51c40f91ad. --- pymc/backends/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pymc/backends/__init__.py b/pymc/backends/__init__.py index a89f64d833..d7ccef66db 100644 --- a/pymc/backends/__init__.py +++ b/pymc/backends/__init__.py @@ -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 @@ -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,