BNNSGraphContextEnableNanAndInfChecks(_:_:)
Specifies that the context checks intermediate tensors for NaNs and infinities.
Declaration
func BNNSGraphContextEnableNanAndInfChecks(_ context: bnns_graph_context_t, _ enable_check_for_nans_inf: Bool)Parameters
- context:
The graph context.
- enable_check_for_nans_inf:
If
true, specifies that the context checks intermediate tensors for NaNs and infinities.
Discussion
Don’t enable this option for production code.