<!--
{
  "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/AsyncMutableValue/ndArray",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core AI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime17InferenceFunctionV17AsyncMutableValueV7ndArrayAA7NDArrayVSgvp"
  },
  "title" : "ndArray"
}
-->

# ndArray

Consume this value to access the underlying NDArray once any pending write is complete.

```
var ndArray: NDArray? { get async throws }
```

## Return Value

The underlying ndArray or `nil` if this was not an ndArray value.

## Discussion> Note: If this value was constructed from a metal buffer directly, then the returned NDArray will be
> a copy of it. If aliasing is intended, you can work with the original metal buffer directly.

---

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)