I don't understand your problem. T.switch should work when nan aren't
selected. The condition should not have nan and if the selected element
isn't nan, but the other is nan, we won't output nan.

Fred

On Sun, Dec 11, 2016 at 8:26 PM, Minh Ngo <[email protected]> wrote:

> Hello,
>
> Could anybody suggest any work around for an issue with nan gradients
> occurred in T.switch if one of its branch produces nan?
> https://github.com/Theano/Theano/issues/5333 . Seems like it's the same
> as this problem https://github.com/Theano/Theano/issues/4918 but the
> issue creator claimed that T.ifelse didn't work for him, but T.switch did.
>
> Best Regards,
>
> Minh
>
>
> --
>
> ---
> 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