Skip to content
This repository was 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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/TensorFlow/Layers/Dense.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public struct Dense<Scalar: TensorFlowFloatingPoint>: Layer {
}

// TODO(TF-433): Remove custom derivative after `try_apply` differentiation is supported.
@derivative(of: init)
@derivative(of: init, wrt: weight)
@usableFromInline
static func vjpInit(
weight: Tensor<Scalar>,
Expand Down