<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCAdamOptimizer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCAdamOptimizer"
  },
  "title" : "MLCAdamOptimizer"
}
-->

# MLCAdamOptimizer

An optimizer that represents the adaptive moment estimation algorithm.

```
class MLCAdamOptimizer
```

## Topics

### Creating an Adam Optimizer

[`init(descriptor:)`](/documentation/MLCompute/MLCAdamOptimizer/init(descriptor:))

Creates an Adam optimizer with the descriptor you specify.

[`init(descriptor:beta1:beta2:epsilon:timeStep:)`](/documentation/MLCompute/MLCAdamOptimizer/init(descriptor:beta1:beta2:epsilon:timeStep:))

Creates an Adam optimizer with the values you specify.

[`init(descriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:)`](/documentation/MLCompute/MLCAdamOptimizer/init(descriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:))

Creates an Adam optimizer with the values you specify.

### Inspecting an Adam Optimizer

[`beta1`](/documentation/MLCompute/MLCAdamOptimizer/beta1)

The coefficent for computing running averages of gradient.

[`beta2`](/documentation/MLCompute/MLCAdamOptimizer/beta2)

The coefficent for computing running averages of square of gradient.

[`epsilon`](/documentation/MLCompute/MLCAdamOptimizer/epsilon)

The epsilon value for improving numerical stability.

[`timeStep`](/documentation/MLCompute/MLCAdamOptimizer/timeStep)

The initial timestep for the update.

[`usesAMSGrad`](/documentation/MLCompute/MLCAdamOptimizer/usesAMSGrad)

A Boolean value that indicates whether to use a variant of the algorithm.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)