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

[SR-9790] [AD] [Lexer] Disambiguate between @differentiable decl attribute and type attribute #52215

Closed
rxwei opened this issue Jan 29, 2019 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow

Comments

@rxwei
Copy link
Member

rxwei commented Jan 29, 2019

Previous ID SR-9790
Radar None
Original Reporter @rxwei
Type Bug
Status Closed
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug
Assignee pschuh (JIRA)
Priority Medium

md5: 211ab4b11abf2e3ad7e556a3dbabfcd8

relates to:

Issue Description:

The `@autodiff` attribute was never designed to exist – it existed because the lexer can only lex `@differentiable` to one token kind without extra lookahead. We should fix that.

Both the type attribute and the decl attribute can be followed by a parenthesis and an identifier.
Decl attributes: `@differentiable(wrt: x)`, `@differentiable(where T : FloatingPoint)`
Type attributes: `@differentiable (T) -> U`, `@differentiable SomeTypeAlias`

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow
Projects
None yet
Development

No branches or pull requests

1 participant