Skip to content

Remove duplicate definitions of CppTypeToScalarType#42640

Closed
peterbell10 wants to merge 1 commit intopytorch:masterfrom
peterbell10:remove-duplicate-CppTypeToScalarType
Closed

Remove duplicate definitions of CppTypeToScalarType#42640
peterbell10 wants to merge 1 commit intopytorch:masterfrom
peterbell10:remove-duplicate-CppTypeToScalarType

Conversation

@peterbell10
Copy link
Copy Markdown
Collaborator

I noticed that TensorIteratorDynamicCasting.h defines a helper meta-function CPPTypeToScalarType which does exactly the same thing as the c10::CppTypeToScalarType meta-function I added in gh-40927. No need for two identical definitions.

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Aug 5, 2020

💊 CI failures summary and remediations

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


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

ci.pytorch.org: 2 failed


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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 4 times.

@peterbell10 peterbell10 force-pushed the remove-duplicate-CppTypeToScalarType branch from 6fc7ee2 to 8e15c27 Compare August 5, 2020 23:07
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.

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ezyang merged this pull request in 586399c.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
I noticed that `TensorIteratorDynamicCasting.h` defines a helper meta-function `CPPTypeToScalarType` which does exactly the same thing as the `c10::CppTypeToScalarType` meta-function I added in pytorchgh-40927. No need for two identical definitions.

Pull Request resolved: pytorch#42640

Reviewed By: malfet

Differential Revision: D22969708

Pulled By: ezyang

fbshipit-source-id: 8303c7f4a75ae248f393a4811ae9d2bcacab44ff
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.

4 participants