<!--
{
  "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/MLCTensorParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCTensorParameter"
  },
  "title" : "MLCTensorParameter"
}
-->

# MLCTensorParameter

A tensor parameter object.

```
class MLCTensorParameter
```

## Overview

Use a tensor parameter to describe input tensors that the optimizer updates during training.

## Topics

### Creating Tensor Parameters

[`init(tensor:)`](/documentation/MLCompute/MLCTensorParameter/init(tensor:))

Creates a tensor parameter with the tensor you specify.

[`init(tensor:optimizerData:)`](/documentation/MLCompute/MLCTensorParameter/init(tensor:optimizerData:))

Creates a tensor parameter with the tensor and optimizer data you specify.

### Inspecting Tensor Parameters

[`tensor`](/documentation/MLCompute/MLCTensorParameter/tensor)

The underlying tensor.

[`isUpdatable`](/documentation/MLCompute/MLCTensorParameter/isUpdatable)

A Boolean that indicates whether this tensor parameter is updatable.



---

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)