Skip to content

[Type Refactor] Move type implementations and mappers to internal package #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 18, 2020

Conversation

karllessard
Copy link
Collaborator

@karllessard karllessard commented Dec 18, 2020

In this relatively-simple PR, I move the implementations of the typed tensors (TType) and their mapping method to the internal package as separate objects.

While the reason for doing it might seem unclear at this point, it will make more sense in the next PR where the *Mapper class could be referenced from a new @TensorType annotation. In addition, segregating the implementation classes from their respective interfaces is more scalable for when we'll start supporting different categories of tensors, like sparse and ragged.

Note that these changes has no impact on the user API and is completely backward compatible.

CC\ @deansher

@karllessard karllessard requested a review from Craigacp December 18, 2020 03:13
@karllessard karllessard force-pushed the type-refactor-mappers branch from 50ef157 to f4b6fe3 Compare December 18, 2020 03:15
Copy link
Collaborator

@Craigacp Craigacp left a comment

Choose a reason for hiding this comment

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

Small comments.

Craigacp
Craigacp previously approved these changes Dec 18, 2020
Copy link
Collaborator

@Craigacp Craigacp left a comment

Choose a reason for hiding this comment

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

LGTM

@karllessard karllessard changed the title [Type Refactor] Move type implementations and mappers to internal package Move type implementations and mappers to internal package Dec 18, 2020
@karllessard karllessard changed the title Move type implementations and mappers to internal package [Type Refactor] Move type implementations and mappers to internal package Dec 18, 2020
@karllessard karllessard merged commit 04f9d0d into tensorflow:master Dec 18, 2020
@karllessard karllessard deleted the type-refactor-mappers branch December 18, 2020 19:15
@karllessard
Copy link
Collaborator Author

Thanks a lot @Craigacp for this quick review!

rnett pushed a commit to rnett/tensorflow-java that referenced this pull request Dec 28, 2020
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