BNNSGraph.Context
A wrapper around a compiled graph object that adds a required modifiable context to support dynamically sized models and set execute-time options.
Declaration
class ContextOverview
A BNNSGraph.Context instance provides a wrapper around the C API bnns_graph_t and bnns_graph_context_t types. Because this class manages its own memory, you don’t need to call BNNSGraphContextDestroy(_:) to deallocate its resources.
Topics
Creating a graph context
Specifying and querying a graph context’s properties
setDynamicShapes(_:forFunction:)BNNSGraph.ShapeargumentCount(forFunction:)argumentNames(forFunction:)argumentPosition(forFunction:argument:)functionCountfunctionNamescheckForNaNsAndInfinities