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

Commit 3139e9c

Browse files
eaplataniosrxwei
authored andcommitted
Minor edit. (#98)
1 parent db48292 commit 3139e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DeepLearning/Optimizer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import TensorFlow
2222
/// learning model.
2323
public protocol Optimizer {
2424
/// The type of the model whose parameters are optimized.
25-
associatedtype Model: Layer
25+
associatedtype Model: Differentiable
2626
/// The scalar parameter type.
2727
associatedtype Scalar: FloatingPoint
2828
/// The learning rate.

0 commit comments

Comments
 (0)