Skip to content

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Oct 12, 2019

Handle the case where @differentiable(linear) is followed by a type alias or another type attribute.

typealias linear = (Float) -> Float
let property: @differentiable(linear) linear // okay
let property: @differentiable(linear) @convention(c) linear // okay

Resolves TF-576.

Handle the case where `@differentiable(linear)` is followed by a type alias or another type attribute.
```swift
typealias linear = (Float) -> Float
let property: @differentiable(linear) linear // okay
let property: @differentiable(linear) @convention(c) linear // okay
```

Resolves [TF-576](https://bugs.swift.org/browse/TF-576).
@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Oct 12, 2019
@rxwei rxwei requested review from dan-zheng and bartchr808 October 12, 2019 08:42
@rxwei
Copy link
Contributor Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

@rxwei rxwei merged commit 65ebee0 into swiftlang:tensorflow Oct 12, 2019
@rxwei rxwei deleted the TF-576 branch October 12, 2019 20:42
dan-zheng added a commit that referenced this pull request Oct 31, 2019
#27646 was accidentally undone.
Re-cherry-pick the patch.
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.

1 participant