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

Constrain 'Module' to 'EuclideanDifferentiable'. #487

Closed
wants to merge 1 commit into from
Closed
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/Layer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

public protocol Module: Differentiable, KeyPathIterable
public protocol Module: EuclideanDifferentiable, KeyPathIterable
where TangentVector: VectorProtocol & ElementaryFunctions &
PointwiseMultiplicative & KeyPathIterable {
/// The input type of the layer.
Expand Down