Structure

BNNSLayerData

A structure containing common layer parameters.

Declaration

struct BNNSLayerData

Topics

Instance Properties

var data: UnsafeRawPointer?

Pointer to layer values (weights, bias), layout and size are specific to each layer.

var data_bias: Float

Conversion bias for values, used for integer data types only, ignored for indexed and float data types.

var data_scale: Float

Conversion scale for values, used for integer data types only, ignored for indexed and float data types.

var data_table: UnsafePointer<Float>?

Conversion table (256 values) for indexed floating point data, used for indexed data types only.

var data_type: BNNSDataType

Storage data type for the values stored in data.