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 }