Skip to content

[AutoDiff upstream] Store @differentiable original declaration. #29082

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 2 commits into from
Jan 9, 2020

Conversation

dan-zheng
Copy link
Contributor

@dan-zheng dan-zheng commented Jan 8, 2020

Store in DifferentiableAttr the original declaration on which the attribute
is declared.

The original declaration is resolved during parsing and deserialization
(not yet upstreamed).


Progress towards TF-828: upstream @differentiable attribute type-checking.
@differentiable attribute type-checking mega-patch: #29091


Tests exist on tensorflow branch and will be upstreamed later.
Currently, not enough code has been upstreamed for meaningful testing.

Store in `DifferentiableAttr` the original declaration on which the attribute
is declared.

The original declaration is resolved during parsing and deserialization
(not yet upstreamed).

Progress towards TF-828: upstream `@differentiable` attribute type-checking.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Jan 9, 2020

Build failed
Swift Test OS X Platform
Git Sha - efac8a0c0183b88943a4bc8ebfa20484b959392e

@swift-ci
Copy link
Contributor

swift-ci commented Jan 9, 2020

Build failed
Swift Test Linux Platform
Git Sha - efac8a0c0183b88943a4bc8ebfa20484b959392e

@dan-zheng
Copy link
Contributor Author

Linux CI fails due to an unrelated error:

19:21:25 $ "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/none-swift_package_sandbox_linux-x86_64/usr/bin/swiftc" "-o" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/buildbot_linux/none-swift_package_sandbox_linux-x86_64/tests/test-foundation-package/Output/test-foundation-xml.txt.tmp/test-foundation-xml" "/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/swift-integration-tests/test-foundation-package/test-foundation-xml.swift"
19:21:25 # command stderr:
19:21:25 <unknown>:0: warning: missing submodule 'SwiftOverlayShims'
19:21:25 <unknown>:0: error: missing required module 'SwiftOverlayShims'

CI for other PRs seem to fail with the same error, so I imagine it's a recent breakage that should be fixed soon.

@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test Linux platform

@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng
Copy link
Contributor Author

Merging to unblock progress, happy to review additional feedback later!

@dan-zheng dan-zheng merged commit 6a7f840 into swiftlang:master Jan 9, 2020
@dan-zheng dan-zheng deleted the autodiff-upstream branch January 9, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants