Hi, It is the opposite. shared variable are a sort of Theano variable.
Here is an example that probably do what you want: import theano m=theano.tensor.matrix() f=theano.function([m], theano.printing.Print()(m)) f([[2]]) output: __str__ = [[ 2.]] array([[ 2.]]) >>> f=theano.function([m], theano.printing.Print(attrs=["shape"])(m)) >>> f([[2]]) shape = (1, 1) array([[ 2.]]) Fred On Tue, Sep 27, 2016 at 9:23 AM, GUKBEOM LEE <[email protected]> wrote: > Indeed, I am confused by the two concept, TensorVariable and shared > variable. > > TensorVariable is a sort of shared variable? if so, is it impossible to > print TensorVariable(a sort of shared variable) when theano.function is > running? > > -- > > --- > 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 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.
