Skip to content

Conversation

ailzhang
Copy link
Contributor

No description provided.

@ailzhang ailzhang requested a review from dlibenzi October 16, 2019 04:03
return ss.str();
}

ReductionMode MseLoss::GetXlaReductionMode(xla::int64 reduction) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not copy this 😄
There is a perfectly good version in L1Loss...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha nice catch!


xla::int64 reduction() const { return reduction_; }

static ReductionMode GetXlaReductionMode(xla::int64 reduction);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove and use the L1Loss one.

@ailzhang ailzhang merged commit 950e12a into pytorch:master Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants