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

DeepNumpy HuberLoss #18603

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

DeepNumpy HuberLoss #18603

wants to merge 2 commits into from

Conversation

goldmermaid
Copy link
Contributor

Base on D2L users' requirement, add huberloss feature for deepnumpy.

@goldmermaid goldmermaid requested a review from szha as a code owner June 22, 2020 16:29
@mxnet-bot
Copy link

Hey @goldmermaid , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [unix-gpu, website, sanity, windows-cpu, centos-gpu, windows-gpu, clang, miscellaneous, edge, centos-cpu, unix-cpu]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

if F is ndarray:
return F.np.mean(loss, axis=tuple(range(1, loss.ndim)))
else:
return F.npx.batch_flatten(loss).mean(axis=1)
Copy link
Member

Choose a reason for hiding this comment

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

This won't work for arbitrary batch axis.

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