Sadly it isn't trivial. The normal scan behavior is to return a fixed number of previous taps.
But you can do it. Make one of your input as big as the output and add an input that is the iterations number. Then you will return that input where you set row i to the value of that iteration with set_subtensor. I think this will use more memory them needed if you take the gradient. Fred Le mer. 1 mars 2017 10:12, Lesly M. <[email protected]> a écrit : > Hello, > > I need to get all previous tabs values at each iteration with scan. The > documentation shows how to get individual tabs like t-n or t+n, but I would > like to have all from time 0 to t-1. Is it possible? > > Thanks, > > Lesly > > -- > > --- > 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.
