Hi,

There seem to be a problem in the way you use Theano. You should compile a
Theano function by calling theano.function() and reuse that many times. If
you don't do that, then it will be too slow. The time theano.function()
take is significant and probably longer then just one call to the compiled
function.


Fred

On Sun, Jul 31, 2016 at 1:56 PM, Annie Marsden <[email protected]>
wrote:

> Suppose I have a scan function within a main loop and I want to store the
> results for each iteration of the loop. So I have:
> while condition:
> results, updates=theano.scan(...etc...)
> list_of_results.append(results)
> return list_of_results
>
> I find that if, at the end of the loop I pop the list and evaluate each
> entry to get a numpy variable, they all evaluate to the most resent results
> from the last time the scan function was called. Is there a way to avoid
> this? I don't want to have to evaluate the results each time within the
> loop because it makes my code incredibly slow. Any help would be very much
> appreciated.
>
> Thank you,
> Annie
>
>
> --
>
> ---
> 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.

Reply via email to