---
title: checkForNaNsAndInfinities
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/bnnsgraph/context/checkfornansandinfinities
---

# checkForNaNsAndInfinities

A Boolean value that specifies that the context checks intermediate tensors for NaNs and infinities.

## Declaration

```swift
var checkForNaNsAndInfinities: Bool { get set }
```

## See Also

### Related Documentation

- [BNNSGraphContextEnableNanAndInfChecks(_:_:)](accelerate/bnnsgraphcontextenablenanandinfchecks(_:_:).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)
- [argumentNames(forFunction:)](accelerate/bnnsgraph/context/argumentnames(forfunction:).md)
- [argumentPosition(forFunction:argument:)](accelerate/bnnsgraph/context/argumentposition(forfunction:argument:).md)
- [functionCount](accelerate/bnnsgraph/context/functioncount.md)
- [functionNames](accelerate/bnnsgraph/context/functionnames.md)
