Skip to content

[AutoDiff] Update API/ABI status for attributes. #28302

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 1 commit into from
Nov 16, 2019

Conversation

dan-zheng
Copy link
Contributor

@differentiating and @transposing are:

  • API/ABI stable to add. (The declaration is unaffected.)
  • API/ABI breaking to remove.

@noDerivative is API/ABI breaking to add/remove.
Adding/removing the attribute changes derivative code behavior.

@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Nov 16, 2019
NotSerialized, 91)
SIMPLE_DECL_ATTR(compilerEvaluable, CompilerEvaluable,
OnAccessor | OnFunc | OnConstructor | OnSubscript |
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
NotSerialized, 92)
SIMPLE_DECL_ATTR(noDerivative, NoDerivative,
OnVar |
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
Copy link
Contributor Author

@dan-zheng dan-zheng Nov 16, 2019

Choose a reason for hiding this comment

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

Note: I made the stylistic choice to intentionally leave this line >80 columns so all the API/ABI statuses can be on one line.

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

`@differentiating` and `@transposing` are:
- API/ABI stable to add. (The declaration is unaffected.)
- API/ABI breaking to remove.

`@noDerivative` is API/ABI breaking to add/remove.
Adding/removing the attribute changes derivative code behavior.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng dan-zheng merged commit 6c83626 into swiftlang:tensorflow Nov 16, 2019
@dan-zheng dan-zheng deleted the ∂p-attributes branch November 16, 2019 16:15
@dan-zheng dan-zheng restored the ∂p-attributes branch November 21, 2019 17:39
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.

2 participants