public struct OptimizerState
גישה למדינה גלובלית דרך StateAccessor
.
הַצהָרָה
public init(_ zeros: [Tensor<Float>], stateCount: Int)
הַצהָרָה
public init(copying other: OptimizerState, to device: Device)
הַצהָרָה
public var state: [Tensor<Float>]
הַצהָרָה
public var stride: Int
הַצהָרָה
public subscript(stateId: Int, weightId: Int) -> Tensor<Float> { get set }
הַצהָרָה
public subscript(state: OptimizerWeightStepState, index: StateAccessor) -> Tensor<Float> { get set }