public struct OptimizerState
État global accessible via StateAccessor
.
Déclaration
public init(_ zeros: [Tensor<Float>], stateCount: Int)
Déclaration
public init(copying other: OptimizerState, to device: Device)
Déclaration
public var state: [Tensor<Float>]
Déclaration
public var stride: Int
Déclaration
public subscript(stateId: Int, weightId: Int) -> Tensor<Float> { get set }
Déclaration
public subscript(state: OptimizerWeightStepState, index: StateAccessor) -> Tensor<Float> { get set }