---
title: ndArray
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/inferencefunction/asyncmutablevalue/ndarray
---

# ndArray

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

## Declaration

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

## Return Value

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

## Discussion

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.
