# Theano graph in PyMC3 Model

**URL:** https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661
**Category:** Questions
**Tags:** theano
**Created:** [January 26, 2021, 6:14pm UTC](https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661 "2021-01-26T18:14:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chandan5362](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/chandan5362/32/3270_2.png) [@chandan5362](https://discourse.pymc.io/u/chandan5362)
#### Post date: [January 26, 2021, 6:14pm UTC](https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661/1 "2021-01-26T18:14:06Z")

</div>

Can someone explain me how PyMC3 Model is leveraging the Theano static graph to boost the speed?

---

<div class="post-metadata">

### Author: ![ckrapu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ckrapu/32/1366_2.png) [@ckrapu](https://discourse.pymc.io/u/ckrapu)
#### Post date: [January 27, 2021, 5:49pm UTC](https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661/2 "2021-01-27T17:49:32Z")

</div>

There’s a great piece of documentation here: [PyMC3 and Theano — PyMC3 3.10.0 documentation](https://docs.pymc.io/PyMC3_and_Theano.html). Are there particular questions or issues that you are especially curious about?

---

<div class="post-metadata">

### Author: ![chandan5362](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/chandan5362/32/3270_2.png) [@chandan5362](https://discourse.pymc.io/u/chandan5362)
#### Post date: [January 29, 2021, 1:53pm UTC](https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661/3 "2021-01-29T13:53:44Z")

</div>

Thanks for the information.  
Actually I was trying to understand how `aesara`(theano) generates static graph for the model to calculate gradient with respect to free variable. Is there a way to visualize the parent-child paradigm of the graph?

---

<div class="post-metadata">

### Author: ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)
#### Post date: [January 29, 2021, 3:13pm UTC](https://discourse.pymc.io/t/theano-graph-in-pymc3-model/6661/4 "2021-01-29T15:13:13Z")

</div>

This page in the theano docs might help you get a better understanding: [Printing/Drawing Theano graphs — Theano 1.1.2+29.g8b2825658.dirty documentation](https://theano-pymc.readthedocs.io/en/latest/tutorial/printing_drawing.html)
