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

[numpy][doc-fix] mean, transpose, stack, split, log2, rint and radians #15370

Merged
merged 13 commits into from
Jul 3, 2019

Conversation

mikemwx
Copy link
Contributor

@mikemwx mikemwx commented Jun 26, 2019

Description

Add the docs for the above mentioned operators.

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • 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://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

Changes

  • three unary operators are registered to npi namespace, and wrapped in corresponding files
  • mean is registered into npi namespace, and wrapped to have same signature as in numpy
  • website building looks normal
  • unittests for operators still pass

Comments

Thank @reminisce , @haojin2 for reviewing

@mikemwx mikemwx requested a review from szha as a code owner June 26, 2019 08:08
Copy link
Contributor

@reminisce reminisce left a comment

Choose a reason for hiding this comment

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

Some comments on a few operators. Please make similar changes on other operators if necessary.

python/mxnet/_numpy_op_doc.py Outdated Show resolved Hide resolved
python/mxnet/_numpy_op_doc.py Outdated Show resolved Hide resolved
python/mxnet/_numpy_op_doc.py Outdated Show resolved Hide resolved
python/mxnet/ndarray/numpy/_op.py Outdated Show resolved Hide resolved
python/mxnet/_numpy_op_doc.py Show resolved Hide resolved
python/mxnet/_numpy_op_doc.py Outdated Show resolved Hide resolved
python/mxnet/ndarray/numpy/_op.py Outdated Show resolved Hide resolved
python/mxnet/ndarray/numpy/_op.py Show resolved Hide resolved
@haojin2 haojin2 added the Numpy label Jun 27, 2019
Copy link
Contributor

@haojin2 haojin2 left a comment

Choose a reason for hiding this comment

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

Please address the comments.

@haojin2 haojin2 added the Doc label Jul 1, 2019
@mikemwx mikemwx force-pushed the wenxu-doc-fix branch 2 times, most recently from 6144a73 to 5895519 Compare July 3, 2019 05:55
Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
Copy link
Contributor

@haojin2 haojin2 left a comment

Choose a reason for hiding this comment

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

LGTM, will merge soon

@haojin2 haojin2 merged commit 44e5b25 into apache:numpy Jul 3, 2019
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Jul 4, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Jul 4, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Jul 4, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Jul 4, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Jul 4, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
reminisce pushed a commit to reminisce/mxnet that referenced this pull request Jul 17, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit that referenced this pull request Jul 18, 2019
#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit that referenced this pull request Jul 19, 2019
#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit to haojin2/incubator-mxnet that referenced this pull request Jul 22, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit that referenced this pull request Jul 23, 2019
#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit that referenced this pull request Jul 24, 2019
#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
haojin2 pushed a commit that referenced this pull request Jul 26, 2019
#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
reminisce pushed a commit to reminisce/mxnet that referenced this pull request Aug 1, 2019
apache#15370)

* Doc fix for split, stack, transpose, mean, rint, radians, log2.

* Minor syntax fix

* Add some disable=line-too-long to pass pylint test

* Add Notes following the guide of example PR by Mu Li

* Minor syntax fix

* Fix a non-ascii character

* Fix issues mentioned in review by @reminisce

* Register mean into npi namespace and wrap it to have same sigatrue as
standard numpy

* Add mean to __all__ list

* Note the imcompatibility of broacasting to output

* Specify out must have the same type

* Minor syntax fix

* Clearify the `out` in symbol is only a dummy variable

Fix the mess due to pull rebase

Correct the wrong return statement in multiarray

Again, syntax fix

Syntax fix one more time
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants