Skip to content
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

[AutoDiff] Rename @transposing to @transpose(of:). #28488

Merged
merged 5 commits into from
Nov 27, 2019

Conversation

dan-zheng
Copy link
Contributor

@dan-zheng dan-zheng commented Nov 26, 2019

Rename @transposing to @transpose(of:). @transpose(of:) more clearly
evokes transpose registration; the syntax is otherwise unchanged.

Discussed here: #28321 (comment)

Remove @transposing. Removal without deprecation should be fine because
there are no known users of @transposing attribute.

Resolves TF-992.

TF-1009 tracks @transpose syntax support for qualified names.

Rename `@transposing` to `@transpose(of:)` and deprecate `@transposing`.
`@transpose(of:)` more clearly evokes transpose registration; the syntax is
otherwise unchanged.

Discussed here:
swiftlang#28321 (comment)

Resolves TF-992.

TF-999 tracks removing `@transposing` attribute in the next release.
TF-1009 tracks `@transpose` syntax support for qualified names.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Nov 26, 2019
Copy link
Contributor

@bgogul bgogul left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

@bgogul gave the suggestion of deleting @transposing outright without deprecation, as it's essentially a stub with no known users outside of tests. Deleting code is certainly good for maintenance.

I think this makes sense, so I'll do it now.

`@transposing` attribute has no known users, so deleting it outright makes
maintenance easier.

Other assorted gardening included.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng dan-zheng merged commit b9499c3 into swiftlang:tensorflow Nov 27, 2019
@dan-zheng dan-zheng deleted the rename-transpose-attr branch November 27, 2019 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants