-
Undocumented
Declaration
Swift
public typealias ParamTensor = Tensor<Layer.Parameter, Layer.Device> -
Declaration
Swift
public private(set) var model: Layer { get } -
Undocumented
Declaration
Swift
public var learningRate: ParamTensor -
‘Vanilla’ stochastic gradient descent optimizer
Declaration
Swift
public init(model: Layer, learningRate: ParamTensor)Parameters
modelModel to optimize
learningRateLearning rate with which to move along the gradient
-
Declaration
Swift
public mutating func update(along gradients: [ParamTensor])
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
SGD Structure Reference