From 28560627ad75729ac0da865584fdea2344e63a50 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Tue, 27 Aug 2024 13:26:47 +0200 Subject: [PATCH] Deprecate Generator --- pymc/pytensorf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymc/pytensorf.py b/pymc/pytensorf.py index eb4f7410c5..9d6ecd25a2 100644 --- a/pymc/pytensorf.py +++ b/pymc/pytensorf.py @@ -672,6 +672,9 @@ class GeneratorOp(Op): __props__ = ("generator",) def __init__(self, gen, default=None): + warnings.warn( + "generator data is deprecated and will be removed in a future release", FutureWarning + ) from pymc.data import GeneratorAdapter super().__init__()