---
title: "argumentNames(forFunction:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/context/argumentnames(forfunction:)"
---

# argumentNames(forFunction:)

Returns the names of arguments for the given function argument.

## Declaration

```swift
func argumentNames(forFunction function: String? = nil) -> [String]
```

## Parameters

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

## See Also

### Related Documentation

- [BNNSGraphGetArgumentNames(_:_:_:_:)](accelerate/bnnsgraphgetargumentnames(_:_:_:_:).md)

### Specifying and querying a graph context’s properties

- [setDynamicShapes(_:forFunction:)](accelerate/bnnsgraph/context/setdynamicshapes(_:forfunction:).md)
- [BNNSGraph.Shape](accelerate/bnnsgraph/shape.md)
- [argumentCount(forFunction:)](accelerate/bnnsgraph/context/argumentcount(forfunction:).md)
- [argumentPosition(forFunction:argument:)](accelerate/bnnsgraph/context/argumentposition(forfunction:argument:).md)
- [functionCount](accelerate/bnnsgraph/context/functioncount.md)
- [functionNames](accelerate/bnnsgraph/context/functionnames.md)
- [checkForNaNsAndInfinities](accelerate/bnnsgraph/context/checkfornansandinfinities.md)
