Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Fix clipByValue gradient #1076

Merged
merged 2 commits into from
Jun 5, 2018
Merged

Conversation

Lewuathe
Copy link
Contributor

@Lewuathe Lewuathe commented Jun 3, 2018

Description

BUG Fix clipByValue gradient

The graidents of clipByValue should be zeros only when the value is less than min or greater than max. In the case when it is equal to min or max, the graidnets should be kept as it is. This is same behavior to tf.clip_by_value in TensorFlow.


For repository owners only:

Please remember to apply all applicable tags to your pull request.
Tags: FEATURE, BREAKING, BUG, PERF, DEV, DOC, SECURITY

For more info see: https://github.com/tensorflow/tfjs/blob/master/DEVELOPMENT.md


This change is Reviewable

@nsthorat
Copy link
Contributor

nsthorat commented Jun 5, 2018

:lgtm_strong:


Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@nsthorat nsthorat merged commit e916556 into tensorflow:master Jun 5, 2018
@Lewuathe Lewuathe deleted the fix-clip-gradient branch June 6, 2018 00:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants