Contents

BNNSNDArrayGetDataSize(_:)

Returns the size, in bytes, that an array descriptor requires.

Declaration

func BNNSNDArrayGetDataSize(_ array: UnsafePointer<BNNSNDArrayDescriptor>) -> Int

Parameters

  • array:

    The array descriptor.

Return Value

The size of the array descriptor.

Discussion

Use this function to calcluate the size of the workspace that the BNNSNDArrayFullyConnectedSparsifySparseCOO(_:_:_:_:_:_:_:_:_:) and BNNSNDArrayFullyConnectedSparsifySparseCSR(_:_:_:_:_:_:_:_:_:_:) require.

See Also

Sparse layers