<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/InferenceFunction/MutableViews",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core AI",
      "CoreAI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime17InferenceFunctionV12MutableViewsV"
  },
  "title" : "InferenceFunction.MutableViews"
}
-->

# InferenceFunction.MutableViews

A collection of `InferenceValue.MutableView`s which can be updated in-place by an `InferenceFunction`.

```
struct MutableViews
```

## Topics

### Creating a collection

[`init()`](/documentation/CoreAI/InferenceFunction/MutableViews/init())

Initialize an empty instance.

### Adding views

[`func insert(inout some InferenceValue.MutableViewRepresentable & ~Copyable, for: String)`](/documentation/CoreAI/InferenceFunction/MutableViews/insert(_:for:)-1b2yx)

Insert a new value to the output views.

[`func insert<Element>(consuming NDArray.MutableView<Element>, for: String)`](/documentation/CoreAI/InferenceFunction/MutableViews/insert(_:for:)-8ossp)

Insert the mutable view to be used as the ndArray value named `name`.

[`func insert(consuming NDArray.MutableRawView, for: String)`](/documentation/CoreAI/InferenceFunction/MutableViews/insert(_:for:)-9ixpc)

Insert the mutable view for the value named `name`.



---

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)