Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Conversation

@pluskid
Copy link
Contributor

@pluskid pluskid commented Oct 6, 2015

Not sure it was a bug or intentional design. I believe the __neg__ function should not change contents of self. Instead, it should return a new array. It is really weird if after executing, say, x += -grad, the contents of grad is negated.

@tqchen
Copy link
Member

tqchen commented Oct 6, 2015

I think this is something we need to fix

tqchen added a commit that referenced this pull request Oct 6, 2015
__neg__ should return new array instead of changing self
@tqchen tqchen merged commit 78cee9c into apache:master Oct 6, 2015
iblislin pushed a commit to iblislin/incubator-mxnet that referenced this pull request Mar 18, 2018
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.

3 participants