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

onnx softmaxoutput fix #13116

Merged
merged 1 commit into from
Dec 7, 2018
Merged

Conversation

Roshrini
Copy link
Member

@Roshrini Roshrini commented Nov 5, 2018

Description

Fix for the failing tutorial mentioned here
#13099
@vandanavk

Checklist

Essentials

  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http:https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@Roshrini Roshrini requested a review from szha as a code owner November 5, 2018 18:11
@ankkhedia
Copy link
Contributor

@mxnet-label-bot[pr-awaiting-review, ONNX]

@marcoabreu marcoabreu added ONNX pr-awaiting-review PR is waiting for code review labels Nov 5, 2018
@anirudhacharya
Copy link
Member

@Roshrini can you give more context why this change is needed. The link you provided just says that there is a bug. What is the bug, how was it introduced, and how is this fixing it?

@zhreshold for review.

@Roshrini
Copy link
Member Author

get_inputs(node, kwargs) method which was getting used works on all the inputs whereas for SoftmaxOutput operator we are using single input. So, iterating on all the inputs gave OutOfIndex error.
This bug was introduced while cleaning up the code - #12878

@Roshrini
Copy link
Member Author

@zhreshold Can you review/merge this PR?

@kalyc
Copy link
Contributor

kalyc commented Nov 12, 2018

@mxnet-label-bot update [pr-awaiting-merge]

@marcoabreu marcoabreu added pr-awaiting-merge Review and CI is complete. Ready to Merge and removed ONNX pr-awaiting-review PR is waiting for code review labels Nov 12, 2018
Copy link
Contributor

@sandeep-krishnamurthy sandeep-krishnamurthy left a comment

Choose a reason for hiding this comment

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

LGTM.
Why was this not caught in tests?
Are there any tests added now?

@stu1130
Copy link
Contributor

stu1130 commented Nov 21, 2018

@mxnet-label-bot update [pr-work-in-progress]

@marcoabreu marcoabreu added pr-work-in-progress PR is still work in progress and removed pr-awaiting-merge Review and CI is complete. Ready to Merge labels Nov 21, 2018
@vandanavk
Copy link
Contributor

@mxnet-label-bot add [pr-awaiting-testing]

@marcoabreu marcoabreu added the pr-awaiting-testing PR is reviewed and waiting CI build and test label Nov 27, 2018
@@ -681,7 +681,7 @@ def convert_softmax_output(node, **kwargs):
"""Map MXNet's SoftmaxOutput operator attributes to onnx's Softmax operator
and return the created node.
"""
name, _, _ = get_inputs(node, kwargs)
name = node["name"]
Copy link
Member

Choose a reason for hiding this comment

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

The change LGTM, can you add a test case to guard this against happening again?

@Roshrini
Copy link
Member Author

Roshrini commented Dec 6, 2018

@sandeep-krishnamurthy @zhreshold Added test case for the operator

Copy link
Contributor

@sandeep-krishnamurthy sandeep-krishnamurthy left a comment

Choose a reason for hiding this comment

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

Thanks

@sandeep-krishnamurthy sandeep-krishnamurthy merged commit f390f0c into apache:master Dec 7, 2018
zhaoyao73 pushed a commit to zhaoyao73/incubator-mxnet that referenced this pull request Dec 13, 2018
zhaoyao73 added a commit to zhaoyao73/incubator-mxnet that referenced this pull request Dec 13, 2018
* upstream/master: (54 commits)
  Add notes about debug with libstdc++ symbols (apache#13533)
  add cpp example inception to nightly test (apache#13534)
  Fix exception handling api doc (apache#13519)
  fix link for gluon model zoo (apache#13583)
  ONNX import/export: Size (apache#13112)
  Update MXNetTutorialTemplate.ipynb (apache#13568)
  fix the situation where idx didn't align with rec (apache#13550)
  Fix use-before-assignment in convert_dot (apache#13511)
  License update  (apache#13565)
  Update version to v1.5.0 including clojure package (apache#13566)
  Fix flaky test test_random:test_randint_generator (apache#13498)
  Add workspace cleaning after job finished (apache#13490)
  Adding test for softmaxoutput (apache#13116)
  apache#13441 [Clojure] Add Spec Validations for the Random namespace (apache#13523)
  Revert "Bumped minor version from 1.4.0 to 1.5.0 on master, updated License file" (apache#13558)
  Chi_square_check for discrete distribution fix (apache#13543)
  Updated docs for randint operator (apache#13541)
  Simplifications and some fun stuff for the MNIST Gluon tutorial (apache#13094)
  Fix apache#13521 (apache#13537)
  Add a retry to qemu_provision (apache#13551)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants