Skip to content

Commit

Permalink
Deprecate Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Sep 7, 2024
1 parent 6e0d317 commit 2856062
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymc/pytensorf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down

0 comments on commit 2856062

Please sign in to comment.