[theano-users] Re: how to check variable's shape in theano.function
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 theano-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[theano-users] Re: how to check variable's shape in theano.function
I added a following syntax to execute theano.printing.Print. (cce is return value of theano.scan. Therefore, it is not symbolic vaiable. Maybe.) x = theano.tensor.tensor3() t_print =theano.printing.Print("cce value is : ")(x) f = theano.function([x], t_print)_ f(cce) Then, Following Error Occured TypeError: ('Bad input argument to theano function with name "seq2seq.py : 98" at index 0(0-based)', 'Expected an array-like object, but found a Variable: maybe you are trying to call a function on a (possibly shared) variable instead of a numeric array?') Could you possibly let me know how to correct this code to print value(Value of TensorVariable) of cce. Thank you for reading my question. -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] Re: how to check variable's shape in theano.function
Typo. Real days, should be real values like ndarray Turbo should be Theano. Le 20 sept. 2016 22:10, "GUKBEOM LEE"a écrit : > nouiz, thank you for advice. > But I don't understand what turbo function means. Also, do real days mean > 'numpy.ndarray' instead of theano symbolic variable? > I'll try it. I appreciate your advice sincerely. > >> >> -- > > --- > 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+unsubscr...@googlegroups.com. > 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] Re: how to check variable's shape in theano.function
On Tue, Sep 20, 2016, GUKBEOM LEE wrote: > nouiz, thank you for advice. > But I don't understand what turbo function means. Probably "theano" has been autocorrected to "turbo". > Also, do real days mean > 'numpy.ndarray' instead of theano symbolic variable? Yes. > I'll try it. I appreciate your advice sincerely. > > > > > > > -- > > --- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Pascal -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] Re: how to check variable's shape in theano.function
nouiz, thank you for advice. But I don't understand what turbo function means. Also, do real days mean 'numpy.ndarray' instead of theano symbolic variable? I'll try it. I appreciate your advice sincerely. > > -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.