Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Add explicit wrt: clause to @derivative(of:) attribute. #1049

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Conversation

dan-zheng
Copy link
Member

Add explicit wrt: clause to the @derivative(of:) attribute for Dense.init(weight:bias:activation:).

This is necessary now that Optional conforms to Differentiable (swiftlang/swift#32948) so that bias is not inferred as a differentiability parameter.


Unblocks the 2020-07-28 apple/swift master -> tensorflow merge.

Add explicit `wrt:` clause to `@derivative(of:)` attribute for
`Dense.init(weight:bias:activation:)`.

This is necessary now that `Optional` conforms to `Differentiable` so that
`bias` is not inferred as a differentiability parameter.
@dan-zheng dan-zheng requested a review from marcrasi July 28, 2020 21:34
@dan-zheng dan-zheng merged commit 3ce266d into master Jul 28, 2020
@dan-zheng dan-zheng deleted the autodiff branch July 28, 2020 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant