Skip to content

List#20870

Closed
smessmer wants to merge 2 commits intoexport-D15404911from
export-D15476434
Closed

List#20870
smessmer wants to merge 2 commits intoexport-D15404911from
export-D15476434

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented May 23, 2019

Stack:
    :white_circle:  #20871 Use c10::List  💛
    :black_circle:  #20870 List  💛
    :white_circle:  #20669 Dict is a reference type  💚

Write a List type to be used in operator kernels. This abstracts away from the concrete list type used (e.g. std::vector vs SmallVector)
and allows us to change these implementation details without breaking the kernel API.
Also, this class allows for handling List, which would not work with ArrayRef because vector is a bitset and can't be converted to ArrayRef.

Differential Revision: D15476434

Differential Revision: D15476434
Differential Version: 82905567
@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label May 23, 2019
@smessmer smessmer mentioned this pull request May 23, 2019
Differential Revision: D15476434
Differential Version: 82944492
@smessmer smessmer changed the base branch from master to export-D15404911 May 23, 2019 21:33
Copy link
Collaborator

@dzhulgakov dzhulgakov left a comment

Choose a reason for hiding this comment

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

Looks legit (and the C++ boilerplate is looong, hope you copied it from somewhere :) )

@ezyang ezyang closed this May 30, 2019
@smessmer smessmer deleted the export-D15476434 branch May 30, 2019 19:18
@smessmer smessmer mentioned this pull request May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants