Optimizer
public protocol Optimizer
An optimizer encapsulated the logic to update parameters in order to minimize the loss.
-
Declaration
Swift
var graph: DynamicGraph { get }
-
Declaration
Swift
var parameters: [DynamicGraph_AnyParameters] { get set }
-
Declaration
Swift
var scale: Float { get set }
-
Update parameters.
Declaration
Swift
mutating func step(streamContext: StreamContext?)
Parameters
streamContext
The stream context to execute the update operation.
-
step()
Extension methodUpdate parameters.
Declaration
Swift
public mutating func step()