Skip to content

[AutoDiff upstream] add more validation tests #31190

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 1 commit into from
Apr 23, 2020

Conversation

marcrasi
Copy link

These needed some modifications from the tensorflow branch.

test/AutoDiff/validation-test/subset_parameters_thunk.swift:

  • Added import _Differentiation
  • Split into a validation test and a SILOptimizer filecheck test (test/AutoDiff/SILOptimizer/differentiation_subset_parameters_thunk.swift) because the tensorflow branch had both things in the same file.

test/AutoDiff/validation-test/cross_module_derivative_attr.swift:

  • Removed -enable-experimental-cross-file-derivative-registration.
  • Added import_Differentiation.

test/AutoDiff/validation-test/custom_derivatives.swift:

  • Added import _Differentiation.
  • Changed #if os(macOS) to #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS).
  • Removed the .withRecomputationInPullbacks tests because that doesn't exist in master.

@marcrasi marcrasi requested review from rxwei and dan-zheng April 21, 2020 23:28
@marcrasi marcrasi force-pushed the upstream-test-validation-3 branch from 9f3dc2c to 7f5d051 Compare April 21, 2020 23:29
Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice organization 👍

@marcrasi
Copy link
Author

@swift-ci please test tensorflow

@marcrasi
Copy link
Author

oops, wrong ci command

@marcrasi
Copy link
Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7f5d051

@marcrasi
Copy link
Author

@swift-ci please test linux

@marcrasi marcrasi merged commit a48880d into swiftlang:master Apr 23, 2020
@marcrasi marcrasi deleted the upstream-test-validation-3 branch April 23, 2020 00:31
rxwei pushed a commit to rxwei/swift that referenced this pull request Jun 3, 2020
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.

4 participants