---
title: MLCTensorOptimizerDeviceData
framework: ML Compute
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlctensoroptimizerdevicedata
---

# MLCTensorOptimizerDeviceData

An encapsulation of the device memory associated with a tensor that an optimizer uses.

## Declaration

```swift
class MLCTensorOptimizerDeviceData
```

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Inspecting Tensors

- [tensorID](mlcompute/mlctensor/tensorid.md)
- [descriptor](mlcompute/mlctensor/descriptor.md)
- [data](mlcompute/mlctensor/data.md)
- [label](mlcompute/mlctensor/label.md)
- [device](mlcompute/mlctensor/device.md)
- [optimizerData](mlcompute/mlctensor/optimizerdata.md)
- [optimizerDeviceData](mlcompute/mlctensor/optimizerdevicedata.md)
- [hasValidNumerics](mlcompute/mlctensor/hasvalidnumerics.md)
