From 16f9012f37b6e013d8f70624e8fe4b2d2a8e7240 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Mon, 5 Feb 2024 12:39:49 +0100 Subject: [PATCH 1/2] Add debug print --- pymc/variational/operators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymc/variational/operators.py b/pymc/variational/operators.py index f6ef095723..29845088fc 100644 --- a/pymc/variational/operators.py +++ b/pymc/variational/operators.py @@ -142,6 +142,7 @@ def __init__(self, approx, temperature=1): def apply(self, f): # f: kernel function for KSD f(histogram) -> (k(x,.), \nabla_x k(x,.)) + pytensor.dprint(self.approx.model.logp()) if _known_scan_ignored_inputs([self.approx.model.logp()]): raise NotImplementedInference( "SVGD does not currently support Minibatch or Simulator RV" From aef772d6cb212e4e105bceffa4511b7dc805100a Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Mon, 5 Feb 2024 12:43:25 +0100 Subject: [PATCH 2/2] Fix missing newline --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index b21437de01..8aff7d60c9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -30,4 +30,4 @@ sphinx>=1.5 sphinxext-rediraffe types-cachetools typing-extensions>=3.7.4 -watermark \ No newline at end of file +watermark