Contents

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 Context

Overview

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

Specifying a tensor’s properties

Executing a graph

Handling errors

Initializers

Instance Properties

Instance Methods