Skip to content

Update the documentation of the scatter_ method with support for reduction methods.#40962

Closed
v0dro wants to merge 1 commit intopytorch:masterfrom
v0dro:scatter-reduce-docs
Closed

Update the documentation of the scatter_ method with support for reduction methods.#40962
v0dro wants to merge 1 commit intopytorch:masterfrom
v0dro:scatter-reduce-docs

Conversation

@v0dro
Copy link
Copy Markdown
Contributor

@v0dro v0dro commented Jul 3, 2020

Follow up to #36447 . Update for #33389.

Also removes unused unordered_map include from the CPP file.

@v0dro v0dro changed the title This commit updates the documentation of the scatter_ method and adds usage details of scatter reduction Update the documentation of the scatter_ method and adds usage details of scatter reduction Jul 3, 2020
@v0dro v0dro changed the title Update the documentation of the scatter_ method and adds usage details of scatter reduction Update the documentation of the scatter_ method with support for reduction methods. Jul 3, 2020
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ngimel
Copy link
Copy Markdown
Collaborator

ngimel commented Jul 3, 2020

@v0dro
Copy link
Copy Markdown
Contributor Author

v0dro commented Jul 4, 2020

So both these places are functions that are directly placed in native_functions.yaml and as far as I can see all functions in there that accept an str argument (such as einsum) accept the std::string argument by value. I did try to change it to call by reference but it does not compile.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ngimel merged this pull request in 945ae5b.

csarofeen pushed a commit to csarofeen/pytorch that referenced this pull request Jul 7, 2020
…ction methods. (pytorch#40962)

Summary:
Follow up to pytorch#36447 . Update for pytorch#33389.

Also removes unused `unordered_map` include from the CPP file.

Pull Request resolved: pytorch#40962

Differential Revision: D22376253

Pulled By: ngimel

fbshipit-source-id: 4e7432190e9a847321aec6d6f6634056fa69bdb8
csarofeen added a commit to csarofeen/pytorch that referenced this pull request Aug 16, 2020
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…ction methods. (pytorch#40962)

Summary:
Follow up to pytorch#36447 . Update for pytorch#33389.

Also removes unused `unordered_map` include from the CPP file.

Pull Request resolved: pytorch#40962

Differential Revision: D22376253

Pulled By: ngimel

fbshipit-source-id: 4e7432190e9a847321aec6d6f6634056fa69bdb8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants