Skip to content

Commit

Permalink
Mark pm.Data tensors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed May 23, 2019
1 parent 6a6da63 commit 29c72ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pymc3/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def align_minibatches(batches=None):

class Data:
"""Data container class that wraps the theano SharedVariable class
and let the model be aware of its inputs and outputs.
and lets the model be aware of its inputs and outputs.
Parameters
----------
Expand Down Expand Up @@ -449,4 +449,7 @@ def __new__(self, name, value):
"inside a 'with model:' block.")
model.add_random_variable(shared_object)

# mark this as a data object
shared_object.is_data = True

return shared_object

0 comments on commit 29c72ec

Please sign in to comment.