Skip to content

Conversation

@Teaonly
Copy link
Contributor

@Teaonly Teaonly commented Mar 15, 2017

No description provided.

@apaszke
Copy link
Contributor

apaszke commented Mar 15, 2017

There's still a problem with 0 inputs that's fixed in #938. I don't want to merge it right now because it will lead to conflicts with that PR. I'll review it today and see how to solve it.

if self.dim is None:
input, = self.saved_tensors
grad_input = grad_output.new(self.input_size).fill_(self.result)
grad_input = grad_output.new(self.input_size).fill_(self.result * grad_output[0])

This comment was marked as off-topic.

This comment was marked as off-topic.

@apaszke
Copy link
Contributor

apaszke commented Mar 17, 2017

Fixed in #1026. Thanks!

@apaszke apaszke closed this Mar 17, 2017
jjsjann123 pushed a commit to jjsjann123/pytorch that referenced this pull request Aug 5, 2021
syed-ahmed pushed a commit to syed-ahmed/pytorch that referenced this pull request Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants