AdamWOptimizer
public struct AdamWOptimizer : Optimizer, OptimizerAddons, OptimizerTrackSteps
AdamW optimizer.
-
Declaration
Swift
public let graph: DynamicGraph
-
Declaration
Swift
public var step: Int
-
Declaration
Swift
public var rate: Float
-
Declaration
Swift
public var betas: (Float, Float)
-
Declaration
Swift
public var decay: Float
-
Declaration
Swift
public var epsilon: Float
-
Declaration
Swift
public var scale: Float
-
Declaration
Swift
public var amsgrad: Bool
-
Declaration
Swift
public var parameters: [DynamicGraph_AnyParameters] { get set }
-
Declaration
Swift
public init( _ graph: DynamicGraph, rate: Float = 0.001, step: Int = 1, betas: (Float, Float) = (0.9, 0.999), decay: Float = 0, epsilon: Float = 1e-8, amsgrad: Bool = false )
-
Declaration
Swift
public mutating func step(streamContext: StreamContext?)