# How can I use a theano tensor variable as a shape value

**URL:** <https://discourse.pymc.io/t/how-can-i-use-a-theano-tensor-variable-as-a-shape-value/2232>\
**Category:** Questions\
**Created:** [November 18, 2018, 11:20am UTC](https://discourse.pymc.io/t/how-can-i-use-a-theano-tensor-variable-as-a-shape-value/2232 "2018-11-18T11:20:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![aclam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/aclam/32/6124_2.png) [@aclam](https://discourse.pymc.io/u/aclam)\
**Post date:** [February 14, 2023, 7:48am UTC](https://discourse.pymc.io/t/how-can-i-use-a-theano-tensor-variable-as-a-shape-value/2232/6 "2023-02-14T07:48:23Z")

</div>

@ricardoV94 Thanks a ton! This looks promising. For record, I have opened a new post here with explanation of my problem: [Problem with dynamically generating random variables in a Compound Poisson model](https://discourse.pymc.io/t/problem-with-dynamically-generating-random-variables-in-a-compound-poisson-model/11397)

---

_[View the full topic](https://discourse.pymc.io/t/how-can-i-use-a-theano-tensor-variable-as-a-shape-value/2232)._
