Skip to content

Commit 9d6ac59

Browse files
ferrinetwiecki
authored andcommitted
fix make_initial_point_fn
1 parent 34dd3d9 commit 9d6ac59

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nutpie"
3-
version = "0.8.1"
3+
version = "0.8.2"
44
authors = [
55
"Adrian Seyboldt <[email protected]>",
66
"PyMC Developers <[email protected]>"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ dependencies = [
3030

3131
[project.optional-dependencies]
3232
stan = ["bridgestan >= 2.1.2"]
33-
pymc = ["pymc >= 5.5.0", "numba >= 0.57.1"]
33+
pymc = ["pymc >= 5.6.0", "numba >= 0.57.1"]
3434
all = [
3535
"bridgestan >= 2.1.2",
36-
"pymc >= 5.5.0",
36+
"pymc >= 5.6.0",
3737
"numba >= 0.57.1",
3838
]
3939

python/nutpie/compile_pymc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from numba import literal_unroll
1616
from numba.cpython.unsafe.tuple import alloca_once, tuple_setitem
1717
from numpy.typing import NDArray
18+
from pymc.initial_point import make_initial_point_fn
1819

1920
from nutpie import _lib
2021
from nutpie.sample import CompiledModel
@@ -219,7 +220,7 @@ def compile_pymc_model(model: pm.Model, **kwargs) -> CompiledPyMCModel:
219220

220221

221222
def _compute_shapes(model):
222-
point = pm.model.make_initial_point_fn(model=model, return_transformed=True)(0)
223+
point = make_initial_point_fn(model=model, return_transformed=True)(0)
223224

224225
trace_vars = {
225226
var.name: var

0 commit comments

Comments
 (0)