---
title: "BNNSGraphGetInputCount(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/bnnsgraphgetinputcount(_:_:)"
---

# BNNSGraphGetInputCount(_:_:)

Returns the number of input arguments for the given function argument.

## Declaration

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

## Parameters

- `graph`: The compiled graph object.
- `function`: The function. Specify as nil if the graph only contains one function.

## Return Value

Return Value The number of input arguments, or SIZE_T_MAX if the query fails.

## See Also

### Querying a graph’s properties

- [BNNSGraphGetArgumentIntents(_:_:_:_:)](accelerate/bnnsgraphgetargumentintents(_:_:_:_:).md)
- [BNNSGraphArgumentIntent](accelerate/bnnsgraphargumentintent.md)
- [BNNSGraphGetArgumentCount(_:_:)](accelerate/bnnsgraphgetargumentcount(_:_:).md)
- [BNNSGraphGetArgumentNames(_:_:_:_:)](accelerate/bnnsgraphgetargumentnames(_:_:_:_:).md)
- [BNNSGraphGetFunctionCount(_:)](accelerate/bnnsgraphgetfunctioncount(_:).md)
- [BNNSGraphGetFunctionNames(_:_:_:)](accelerate/bnnsgraphgetfunctionnames(_:_:_:).md)
- [BNNSGraphGetInputNames(_:_:_:_:)](accelerate/bnnsgraphgetinputnames(_:_:_:_:).md)
- [BNNSGraphGetOutputCount(_:_:)](accelerate/bnnsgraphgetoutputcount(_:_:).md)
- [BNNSGraphGetOutputNames(_:_:_:_:)](accelerate/bnnsgraphgetoutputnames(_:_:_:_:).md)
- [BNNSGraphGetArgumentPosition(_:_:_:)](accelerate/bnnsgraphgetargumentposition(_:_:_:).md)
- [BNNSGraphGetArgumentInterleaveFactors(_:_:_:_:_:)](accelerate/bnnsgraphgetargumentinterleavefactors(_:_:_:_:_:).md)
