Contents

BNNSGraph.Shape

The specification of the shape of an argument.

Declaration

struct Shape

Overview

The setDynamicShapes(_:forFunction:) function uses arrays of BNNSGraph.Shape structures as its input and output. This structure wraps the C API bnns_graph_shape_t type and derives its rank from the number of elements in the dimensions array.

Topics

Creating a shape structure

Querying a shape structure’s properties

Type Aliases

See Also

Specifying and querying a graph context’s properties