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

Fix gradients for onesLikes / zerosLike#1753

Merged
caisq merged 6 commits intotensorflow:masterfrom
caisq:ones-zeros-like-grad
May 13, 2019
Merged

Fix gradients for onesLikes / zerosLike#1753
caisq merged 6 commits intotensorflow:masterfrom
caisq:ones-zeros-like-grad

Conversation

@caisq
Copy link
Copy Markdown
Collaborator

@caisq caisq commented May 12, 2019

Fixes tensorflow/tfjs#1398

BUG


This change is Reviewable

@caisq caisq requested review from dsmilkov and nsthorat May 13, 2019 02:26
@nsthorat
Copy link
Copy Markdown
Contributor

FYI I am on vacation this week, this fix is fine for now but we should really fix this properly by stopping gradient propagation when we have null gradients @dsmilkov

Copy link
Copy Markdown
Contributor

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @dsmilkov and @nsthorat)

Copy link
Copy Markdown
Contributor

@dsmilkov dsmilkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 2 of 1 approvals obtained (waiting on @dsmilkov)

@dsmilkov
Copy link
Copy Markdown
Contributor

tensorflow/tfjs#619 tracks the special "null" for gradients.

@caisq caisq merged commit f992b40 into tensorflow:master May 13, 2019
@caisq caisq deleted the ones-zeros-like-grad branch May 13, 2019 13:51
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.

Error: Cannot compute gradient: gradient function not found for onesLike.

3 participants