Skip to content

Conversation

dan-zheng
Copy link
Contributor

Previously, @noDerivative attribute type-checking generated implicit
@_semantics("autodiff.nonvarying") attributes.

However, attributes in non-primary-files are not type-checked, so
@noDerivative attributes in non-primary-files are not processed.

Now, all @noDerivative attributes are lowered to
[_semantics "autodiff.nonvarying"] SIL function attributes.

Resolves TF-1145.

Previously, `@noDerivative` attribute type-checking generated implicit
`@_semantics("autodiff.nonvarying")` attributes.

However, attributes in non-primary-files are not type-checked, so
`@noDerivative` attributes in non-primary-files are not processed.

Now, all `@noDerivative` attributes are lowered to
`[_semantics "autodiff.nonvarying"]` SIL function attributes.

Resolves TF-1145.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Feb 4, 2020
@dan-zheng dan-zheng requested review from rxwei and marcrasi February 4, 2020 23:28
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng dan-zheng merged commit 5f65a37 into swiftlang:tensorflow Feb 5, 2020
@dan-zheng dan-zheng deleted the noderivative-attr-fix branch February 5, 2020 01:37
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