We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would make dprint more readable
import aesara import pymc as pm with pm.Model(coords=dict(cities=range(5))) as m: x = pm.Normal("x", dims=("cities")) aesara.dprint(x)
normal_rv{0, (0, 0), floatX, False}.1 [id A] 'x' |RandomStateSharedVariable(<RandomState(MT19937) at 0x7FF40F93C540>) [id B] |SpecifyShape [id C] '' | |MakeVector{dtype='int64'} [id D] '' | | |<TensorType(int64, ())> [id E] <- Cryptic variable! | |TensorConstant{(1,) of 1} [id F] |TensorConstant{11} [id G] |TensorConstant{0} [id H] |TensorConstant{1.0} [id I]
Instead we could give it a name (doing it manually here for illustration):
with pm.Model(coords=dict(cities=range(5))) as m: size = aesara.shared(len(m.coords), name="cities_dim") x = pm.Normal("x", size=(size,)) aesara.dprint(x)
normal_rv{0, (0, 0), floatX, False}.1 [id A] 'x' |RandomStateSharedVariable(<RandomState(MT19937) at 0x7FF408D8E140>) [id B] |SpecifyShape [id C] '' | |MakeVector{dtype='int64'} [id D] '' | | |cities_dim [id E] <- Readable variable name | |TensorConstant{(1,) of 1} [id F] |TensorConstant{11} [id G] |TensorConstant{0} [id H] |TensorConstant{1.0} [id I]
The text was updated successfully, but these errors were encountered:
@flo-schu This may be a good beginner issue to work on! Let us know what you think
Sorry, something went wrong.
Thanks @canyon289. This seems doable. I'll look into it.
Successfully merging a pull request may close this issue.
Would make dprint more readable
Instead we could give it a name (doing it manually here for illustration):
The text was updated successfully, but these errors were encountered: