Sihyeon Seong
2017-07-22 23:42:06 UTC
Hi, I found out T.clip(x, min, max) makes gradient zero when x is not in
[min, max].
It would be useful if there is a function only clips value in the forward
pass, and calculate df/dx(x=max) at the backward-pass.
Is the function I explained exist in Theano? Or, can somebody teach me how
to implement it? Thanks.
[min, max].
It would be useful if there is a function only clips value in the forward
pass, and calculate df/dx(x=max) at the backward-pass.
Is the function I explained exist in Theano? Or, can somebody teach me how
to implement it? 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 theano-users+***@googlegroups.com.
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.