GSoC 2022 Q&A #153
Replies: 3 comments 4 replies
-
I changed this to a general Discussion, since the single Q & A format might not work well for multiple questions and ongoing discussions. |
Beta Was this translation helpful? Give feedback.
-
Why is a Perhaps more generally, what purpose do |
Beta Was this translation helpful? Give feedback.
-
In the following example, where does srng = at.random.RandomStream(seed=2320)
I_rv = srng.bernoulli(0.5, name="I")
X_rv = srng.normal(-10., 0.1, name="X")
Y_rv = srng.normal(10., 0.1, name="Y")
Z_rv = at.stack([X_rv, Y_rv])[I_rv]
Z_rv.name = "Z"
z_vv = Z_rv.clone()
fgraph, _, _ = construct_ir_fgraph({Z_rv: z_vv, I_rv: i_vv})
fgraph.outputs[0].owner.inputs # [NoneConst, ScalarFromTensor.0, X, Y]
aesara.dprint(fgraph2.outputs[0].owner.inputs[1])
# ScalarFromTensor [id A]
# |bernoulli_rv{0, (0,), int64, False}.1 [id B] 'I'
# |RandomGeneratorSharedVariable(<Generator(PCG64) at 0x165706E40>) [id C]
# |TensorConstant{[]} [id D]
# |TensorConstant{4} [id E]
# |TensorConstant{0.5} [id F] I'm currently trying to work out a aesara.graph.basic.equal_computations(fgraph2.outputs[0].owner.inputs[1], I_rv) yields |
Beta Was this translation helpful? Give feedback.
-
Following a discussion with @brandonwillard yesterday, many concepts are still difficult for me to understand and I often find myself with many questions. To facilitate conversation, this discussion board can serve as a place where I ask such questions and receive pointers to hopefully get unstuck in my progress.
Beta Was this translation helpful? Give feedback.
All reactions