<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraphGetArgumentPosition(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@BNNSGraphGetArgumentPosition"
  },
  "title" : "BNNSGraphGetArgumentPosition(_:_:_:)"
}
-->

# BNNSGraphGetArgumentPosition(_:_:_:)

Returns the index into the arguments array for the given function argument.

```
func BNNSGraphGetArgumentPosition(_ graph: bnns_graph_t, _ function: UnsafePointer<CChar>?, _ argument: UnsafePointer<CChar>) -> Int
```

## Parameters

`graph`

The compiled graph object.

`function`

The function. Specify as `nil` if the graph only contains one function.

`argument`

The name of the input or output argument.

## Return Value

Returns the index into the arguments array for the given function argument, or `SIZE_T_MAX` if the query fails.

## Discussion

---

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)