Skip to content

Conversation

@rxwei
Copy link
Contributor

@rxwei rxwei commented Jan 20, 2019

  • Derived conformances for Differentiable put @_fieldwiseProductSpace on either all associated types or none, so it is redundant to keep this attribute on every typealias in a Differentiable type. Instead, we move it up to the parent struct decl so that it simplifies both derivation and checking.

  • Simplify struct_extract differentiation logic and improve code style.

  • Remove legacy lookUpOrLinkFunction and have everything go through DifferentiationTask.

…ate `@_fieldwiseProductSpace`.

* Derived conformances for `Differentiable` puts `@_fieldwiseProductSpace` on either all associated types or none, so it is redundant to keep this attribute on every typealias in a `Differentiable` type. Instead, we move it up to the parent struct decl so that it simplifies both derivation and checking.

* Simplify `struct_extract` differentiation logic and improve code style.

* Remove legacy `lookUpOrLinkFunction` and have everything go through `DifferentiationTask`.
@rxwei rxwei requested a review from dan-zheng January 20, 2019 11:01
@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Jan 20, 2019
@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 2019

@swift-ci please test tensorflow

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.

Great simplification of the semantics of @_fieldwiseDifferentiable 👍

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