Skip to content

fix @differentiable function in .swiftinterface #25059

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 4 commits into from
May 25, 2019

Conversation

marcrasi
Copy link

@marcrasi marcrasi commented May 25, 2019

While messing with .swiftinterface files, I discovered that @differentiable functions don't get printed correctly in .swiftinterface files.

The test in test/AutoDiff/differentiable_attr_parseable_interface.swift demonstrates what this fixes.

The extra test in test/Serialization/differentiable_attr.swift was already passing before this change, but I noticed that that file didn't have a @differentiable function as a param, so I thought it would be good it to add to that file too.

@marcrasi marcrasi requested review from rxwei and dan-zheng May 25, 2019 01:22
Copy link
Contributor

@rxwei rxwei left a comment

Choose a reason for hiding this comment

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

Nice. Thanks!

I think we should make this test be located in test/AutoDiff as differentiable_attr_parseable_interface.swift for now. Similarly, while a lot other test files in test/AutoDiff should in principle be in other test folders, we grouped them in the same folder in order to easily identify what to upstream when the time comes.

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! I believe this at least partially resolves TF-489.
Could you try re-enabling validation-test/ParseableInterface/verify_all_overlays.py?

@marcrasi
Copy link
Author

Okay, I tried re-enabling that. But it is still failing just as much as before. So I un-re-enabled it.

@marcrasi
Copy link
Author

@swift-ci please test tensorflow

@rxwei rxwei merged commit 4ebb027 into swiftlang:tensorflow May 25, 2019
@marcrasi marcrasi deleted the fix-parseable-interface branch May 25, 2019 20:47
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