You can do it manually, by passing as a sequence to the scan:

theano.tensor.arange(10)

Fred

On Sun, Dec 18, 2016 at 6:57 AM, Daksh Varshneya <[email protected]>
wrote:

> Hi,
>
> Is it possible to pass the iterating index of scan to the function I am
> calling from scan?
> For eg -
> def step(x,i):
>    # i is the current scan index. Use it for some conditional expressions
>
> for i in range(0,10):
>    step(x,i)
>
>  I want to do something similar using theano. Any clues?
>
> Thanks
>
> --
>
> ---
> 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