Skip to content

Move (most) generated return statements for TH functions out of the switch.#38073

Closed
gchanan wants to merge 5 commits intogh/gchanan/276/basefrom
gh/gchanan/276/head
Closed

Move (most) generated return statements for TH functions out of the switch.#38073
gchanan wants to merge 5 commits intogh/gchanan/276/basefrom
gh/gchanan/276/head

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented May 7, 2020

Stack from ghstack:

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

Differential Revision: D21476010

…witch.

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 7, 2020
…witch.

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

ghstack-source-id: 7396b65
Pull Request resolved: #38073
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 7, 2020

💊 CI failures summary and remediations

As of commit ad80b46 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 19 times.

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented May 8, 2020

Generated code before and after?

…ut of the switch."

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

[ghstack-poisoned]
…ut of the switch."

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

Differential Revision: [D21476010](https://our.internmc.facebook.com/intern/diff/D21476010)

[ghstack-poisoned]
…ut of the switch."

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

Differential Revision: [D21476010](https://our.internmc.facebook.com/intern/diff/D21476010)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 8, 2020
…witch.

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

ghstack-source-id: 71896e5
Pull Request resolved: #38073
…ut of the switch."

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

Differential Revision: [D21476010](https://our.internmc.facebook.com/intern/diff/D21476010)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 8, 2020
…witch.

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

ghstack-source-id: 02207e5
Pull Request resolved: #38073
@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented May 11, 2020

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@gchanan merged this pull request in 6bb1c4a.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/276/head branch May 16, 2020 14:16
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…witch. (pytorch#38073)

Summary:
Pull Request resolved: pytorch#38073

Most of the generated return statements don't depend on the scalar type and it saves ~900 lines of generated code.

Test Plan: Imported from OSS

Differential Revision: D21476010

Pulled By: gchanan

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants