Common Parameters

Neural network layers have the following common parameters:

Parameter

Default Value

Description

weightsInitializer

services::SharedPtr<initializers::InitializerIface>(new initializers::uniform::Batch<>())

Weights initializer for the layer.

biasesInitializer

services::SharedPtr<initializers::InitializerIface>(new initializers::uniform::Batch<>())

Biases initializer for the layer.

predictionStage

false

A flag that specifies whether the layer is used at the prediction stage. Applies to forward layers.

weightsAndBiasesInitialized

false

Initialization status of weights and biases:

  • true if the user provides weights and biases. It is your responsibility to set the flag to true so that the layer uses the user-defined weights and biases.
  • false if the layer uses the default initializer or the one selected by the user from the list of supported initializers to initialize weights and biases.
For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)