Discussion:
[theano-users] What are all the types of theano variables?
David Krueger
2017-05-13 04:22:16 UTC
Permalink
AFAICT, the basic types are:

Variable
SharedVariable,
Constant,
random (??)

are there more?

Is this documented somewhere?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mohamed Akrout
2017-05-14 11:20:27 UTC
Permalink
Hi,

In the official tutorial
<http://deeplearning.net/software/theano/theano.pdf> of Theano, Theano
manipulates Tensor and Scalars. Anyone of these two types can be Variable,
Shared, or constant.

From my understanding, random is not a type by itself because you have
theano.tensor.constant type but no theano.tensor.random.
Post by David Krueger
Variable
SharedVariable,
Constant,
random (??)
are there more?
Is this documented somewhere?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Krueger
2017-05-14 22:30:54 UTC
Permalink
thanks for the response. Do you know if this is an exhaustive list? (I
don't care about the distinction between tensors/scalars/dtypes, atm)

Also, pg59 has: "Random streams are at their core shared variables", so I
guess that clears things up a little bit.
Post by Mohamed Akrout
Hi,
In the official tutorial
<http://deeplearning.net/software/theano/theano.pdf> of Theano, Theano
manipulates Tensor and Scalars. Anyone of these two types can be Variable,
Shared, or constant.
From my understanding, random is not a type by itself because you have
theano.tensor.constant type but no theano.tensor.random.
Post by David Krueger
Variable
SharedVariable,
Constant,
random (??)
are there more?
Is this documented somewhere?
--
---
You received this message because you are subscribed to a topic in the
Google Groups "theano-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/theano-users/y9NhBgRhKEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Krueger
2017-05-14 22:32:23 UTC
Permalink
blocks' code-base seems to suggest it is exhaustive:
(line 265):
https://github.com/mila-udem/blocks/blob/master/blocks/utils/__init__.py


On Sun, May 14, 2017 at 6:30 PM, David Krueger <
Post by David Krueger
thanks for the response. Do you know if this is an exhaustive list? (I
don't care about the distinction between tensors/scalars/dtypes, atm)
Also, pg59 has: "Random streams are at their core shared variables", so I
guess that clears things up a little bit.
Post by Mohamed Akrout
Hi,
In the official tutorial
<http://deeplearning.net/software/theano/theano.pdf> of Theano, Theano
manipulates Tensor and Scalars. Anyone of these two types can be Variable,
Shared, or constant.
From my understanding, random is not a type by itself because you have
theano.tensor.constant type but no theano.tensor.random.
Post by David Krueger
Variable
SharedVariable,
Constant,
random (??)
are there more?
Is this documented somewhere?
--
---
You received this message because you are subscribed to a topic in the
Google Groups "theano-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/theano-users/y9NhBgRhKEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...