Skip to content

[Minor] ExtractImagePatches grad fails when batch size is unknown - #5502

Merged
benoitsteiner merged 2 commits into
tensorflow:masterfrom
liuyipei:ExtractImagePatches_grad_nonebatchsize
Nov 10, 2016
Merged

benoitsteiner merged 2 commits into
tensorflow:masterfrom
liuyipei:ExtractImagePatches_grad_nonebatchsize

Conversation

@liuyipei

@liuyipei liuyipei commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

Mentioned in
#5501
#3672
Solution was by @mohamedadaly

@mention-bot

Copy link
Copy Markdown

@liuyipei, thanks for your PR! By analyzing the history of the files in this pull request, we identified @keveman, @vrv and @benoitsteiner to be potential reviewers.

@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@liuyipei

liuyipei commented Nov 9, 2016

Copy link
Copy Markdown
Contributor Author

I signed it!

@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@liuyipei
liuyipei force-pushed the ExtractImagePatches_grad_nonebatchsize branch from dae1537 to 379bfd5 Compare November 9, 2016 20:09
@liuyipei

liuyipei commented Nov 9, 2016

Copy link
Copy Markdown
Contributor Author

I signed it!

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Nov 9, 2016
@liuyipei liuyipei changed the title ExtractImagePatches grad fails when batch size is unknown [Minor] ExtractImagePatches grad fails when batch size is unknown Nov 9, 2016
@liuyipei liuyipei closed this Nov 9, 2016
@liuyipei liuyipei reopened this Nov 9, 2016
@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@benoitsteiner benoitsteiner self-assigned this Nov 10, 2016
dim.value for dim in op.inputs[0].get_shape()
]
batch_size = array_ops.shape(op.inputs[0])[0]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To be consistent, you should also use array_ops.shape() to extract rows_in, cols_in, and channels

@liuyipei

Copy link
Copy Markdown
Contributor Author

@benoitsteiner
I changed channels as per your request; sadly, there is a distinction for the others.
rows_out, rows_in, and etc are actually used as scalar underneath, where they do scalar-ish things like serving as for-loop constraints, getting passed into range, and etc. So, a significant rewrite would be required if I wanted to let rows_in to be a tensor.

@benoitsteiner

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@benoitsteiner
benoitsteiner merged commit b6131cb into tensorflow:master Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants