Skip to content

Include c10 namespace into caffe2 and at namespaces.#12950

Closed
smessmer wants to merge 2 commits intoexport-D10518929from
export-D10496244
Closed

Include c10 namespace into caffe2 and at namespaces.#12950
smessmer wants to merge 2 commits intoexport-D10518929from
export-D10496244

Conversation

@smessmer
Copy link
Copy Markdown
Contributor

@smessmer smessmer commented Oct 22, 2018

Stack:
    :white_circle:  #13024 Fix TensorList ambiguity  💛
    :black_circle:  #12950 Include c10 namespace into caffe2 and at namespaces.  💚

For backwards compatibility, we want the c10 symbols to be reachable from caffe2 and aten.
When we move classes from at/caffe2 to c10, this

  1. allow keeping backwards compatibility with third paty code we can't control
  2. allows splitting diffs that move such classes into two diffs, where one only fixes the includes and the second one fixes the namespaces.

Differential Revision: D10496244

Differential Revision: D10496244
Differential Version: 61314115
@smessmer smessmer requested review from Yangqing and gchanan October 22, 2018 21:32
Copy link
Copy Markdown
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

But you're going to need to fix the TensorList name conflict (it appears to be defined to be ArrayRef in at, but a IValue representing a mutable tensor list in torch)

@ezyang ezyang requested a review from zdevito October 23, 2018 00:20
@ezyang ezyang mentioned this pull request Oct 23, 2018
Copy link
Copy Markdown
Contributor

@Yangqing Yangqing left a comment

Choose a reason for hiding this comment

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

LGTM pending @ezyang 's comment.

Differential Revision: D10496244
Differential Version: 61463383
@smessmer smessmer changed the base branch from master to export-D10518929 October 24, 2018 00:03
@soumith soumith deleted the export-D10496244 branch February 21, 2019 12:12
@ezyang ezyang added the merged label Jun 25, 2019
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#12950

For backwards compatibility, we want the c10 symbols to be reachable from caffe2 and aten.
When we move classes from at/caffe2 to c10, this
 1. allow keeping backwards compatibility with third paty code we can't control
 2. allows splitting diffs that move such classes into two diffs, where one only fixes the includes and the second one fixes the namespaces.

Reviewed By: ezyang

Differential Revision: D10496244

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants