the motivation is actually to find all of the Variables that must be
provided as input in order to compute a given node (which is what I think
the blocks code I pasted is doing).


On Tue, May 23, 2017 at 5:52 PM, Frédéric Bastien <
[email protected]> wrote:

> Constant and SharedVariable are different subclass of Variable. So if you
> just want to know if an object is a Theano Variable, you can just call
>
> isinstance(obj, theano.Variable)
>
> The variables related to random are sometimes subclass of SharedVariable
> (for the state) ( the random on the CPU that wrap numpy generator).
>
> Frédéric
>
> On Sun, May 14, 2017 at 6:32 PM David Krueger <
> [email protected]> wrote:
>
>> 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 <
>> [email protected]> wrote:
>>
>>> 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.
>>>
>>>
>>>
>>>
>>>
>>> On Sun, May 14, 2017 at 7:20 AM, Mohamed Akrout <
>>> [email protected]> wrote:
>>>
>>>> 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.
>>>>
>>>>
>>>>
>>>> On Saturday, May 13, 2017 at 6:22:16 AM UTC+2, David Krueger wrote:
>>>>>
>>>>> 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 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
>>>> [email protected].
>>>> 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 [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>
> ---
> 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
> [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to