Skip to content

[AutoDiff] Serialize/Deserialize linear, make Attribute reflect whether Function is linear. #25269

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 19 commits into from
Jun 6, 2019

Conversation

bartchr808
Copy link
Contributor

@bartchr808 bartchr808 commented Jun 5, 2019

Continuation of work on the linear argument to the @differentiable and @differentiating attributes. This PR:

  • Makes the DifferentiableAttr and DifferentiatingAttr object reflect whether the function is marked as linear or not, instead of defaulting to false like I did temporarily in previous PRs
  • Serializes/Deserializes the linear argument

@bartchr808 bartchr808 added the tensorflow This is for "tensorflow" branch PRs. label Jun 5, 2019
@bartchr808 bartchr808 requested review from rxwei and dan-zheng June 5, 2019 20:56
@@ -1505,7 +1505,7 @@ ERROR(attr_differentiable_expected_label,none,
ERROR(attr_differentiating_expected_original_name,PointsToFirstBadToken,
"expected an original function name", ())
ERROR(attr_differentiating_expected_label_linear_or_wrt,none,
"expected either 'linear' or 'wrt:'", ())
"expected either 'linear' or 'wrt:'", ())
Copy link
Contributor Author

@bartchr808 bartchr808 Jun 5, 2019

Choose a reason for hiding this comment

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

Missed PR request that @rxwei caught from a previous PR (thanks!)

@bartchr808 bartchr808 force-pushed the modify-diff-attrs-linear branch from 653fd36 to ea49487 Compare June 5, 2019 21:54
@bartchr808 bartchr808 marked this pull request as ready for review June 5, 2019 21:56
@bartchr808 bartchr808 requested a review from dan-zheng June 5, 2019 21:56
@bartchr808
Copy link
Contributor Author

@swift-ci please test tensorflow

@bartchr808
Copy link
Contributor Author

"Swift Test macOS Platform (TensorFlow)" is having issues (already known), so will merge it in now.

@bartchr808 bartchr808 merged commit 8d9df6c into swiftlang:tensorflow Jun 6, 2019
@bartchr808 bartchr808 deleted the modify-diff-attrs-linear branch June 6, 2019 01:02
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