Skip to content

[AutoDiff] Update @differentiable attribute API/ABI status. #28148

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 8, 2019

Conversation

dan-zheng
Copy link
Contributor

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

Mark @differentiable attribute as:

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

This is an experiment regarding #27506 (comment).

Context: the (ABI|API)(Stable|Breaking)To(Add|Remove) tags were added in #27180 and became relevant for @differentiable during the swift-DEVELOPMENT-SNAPSHOT-2019-09-16-a -> tensorflow merge.

At the time, few attributes used Breaking (final, frozen, _fixed_layout). The previous default was Stable, so we used it for @differentiable. If Breaking is used, swift-api-digester diagnoses API/ABI-breaking attribute additions/removals in the stdlib, which may cause issues. Verifying now.

@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Nov 8, 2019
@dan-zheng dan-zheng changed the title [AutoDiff] Update @differentiable attribute API/ABI status. [Experiment] [AutoDiff] Update @differentiable attribute API/ABI status. Nov 8, 2019
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

CI passed. Running extended test suite now (tensorflow/swift-apis, tensorflow/swift-models, etc).

Mark `@differentiable` attribute as:
- API/ABI stable to add. (The `@differentiable` declaration is unaffected.)
- API/ABI breaking to remove.
@dan-zheng dan-zheng force-pushed the diff-attr-abi-api-status branch from 75cb9e5 to 4b697b5 Compare November 8, 2019 08:41
@dan-zheng
Copy link
Contributor Author

Oops, I used the wrong ABI/API statuses. @differentiable attribute should be:

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

Re-triggering CI and extended test suite.

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng dan-zheng requested review from bgogul and rxwei November 8, 2019 17:43
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.

Thanks!

@dan-zheng dan-zheng changed the title [Experiment] [AutoDiff] Update @differentiable attribute API/ABI status. [AutoDiff] Update @differentiable attribute API/ABI status. Nov 8, 2019
@dan-zheng dan-zheng merged commit 473d2ee into swiftlang:tensorflow Nov 8, 2019
@dan-zheng dan-zheng deleted the diff-attr-abi-api-status branch November 8, 2019 19: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