You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
michaelosthege
changed the title
Add pm.Data options to create constant data variables
Tweak pm.Data to create or auto-replace by TensorConstantOct 26, 2021
Background
pm.Data
is often used to track data in the model, making it end up in theInferenceData
and so on.Right now this always creates shared variables, but in the vast majority of applications one doesn't actually use the shared variable features.
Generally there are three (?) flavors of data variables:
TensorConstant
instead)AFAIK Aesara does not distinguish between shared variables that can, or cannot be resized.
Motivation
But the difference between
TensorConstant
andSharedVariable
is a thing, and sometimes also costly.For example see #3818
Potential solution
pm.Data
through which one can constrain the flexibility (creatingTensorConstant
instead).SharedVariable
s in the graph withTensorConstant
before starting MCMC.Versions and main components
main
The text was updated successfully, but these errors were encountered: