swift
[AutoDiff] Fix `@noDerivative` attributes in non-primary-files.
#29647
Merged

[AutoDiff] Fix `@noDerivative` attributes in non-primary-files. #29647

dan-zheng
dan-zheng5 years ago

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 [AutoDiff] Fix `@noDerivative` attributes in non-primary-files.
78f5e7e0
dan-zheng dan-zheng added tensorflow
dan-zheng dan-zheng requested a review from rxwei rxwei 5 years ago
dan-zheng dan-zheng requested a review from marcrasi marcrasi 5 years ago
marcrasi
marcrasi approved these changes on 2020-02-04
dan-zheng
dan-zheng5 years ago

@swift-ci Please test tensorflow

rxwei
rxwei approved these changes on 2020-02-04
dan-zheng dan-zheng merged 5f65a37a into tensorflow 5 years ago
dan-zheng dan-zheng deleted the noderivative-attr-fix branch 5 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone