Discussion:
[theano-users] how can I get the shape of variable at each step in scan function?
Rezvan Nazari
2017-06-11 21:10:26 UTC
Permalink
hello
I would like to know how to get the shape of variable at each step in scan
fuction?
.I used the theano.printing.Print operation
(c_t = theano.printing.Print(attrs=['shape'])(c_t
but it didn't print out anything
Thank you.
--
---
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.
Frédéric Bastien
2017-06-12 22:00:31 UTC
Permalink
You need to do this just after c_t is defined and before it is used.
Otherwise it won't help you.
Post by Rezvan Nazari
hello
I would like to know how to get the shape of variable at each step in scan
fuction?
.I used the theano.printing.Print operation
(c_t = theano.printing.Print(attrs=['shape'])(c_t
but it didn't print out anything
Thank you.
--
---
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
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...