Compute Library
 23.05
FullyConnectedLayerInfo Struct Reference

Fully connected layer info. More...

#include <Types.h>

Collaboration diagram for FullyConnectedLayerInfo:
[legend]

Public Member Functions

FullyConnectedLayerInfoset_weights_trained_layout (DataLayout layout)
 Sets the weights trained data layout. More...
 
FullyConnectedLayerInfoset_transpose_weights (bool should_transpose_weights)
 Sets the transpose weights flag. More...
 

Data Fields

ActivationLayerInfo activation_info {}
 Fused activation to apply after the matrix multiplication. More...
 
DataLayout weights_trained_layout { DataLayout::NCHW }
 Layout that the weights have been trained with. More...
 
bool transpose_weights { true }
 Transpose weights if true. More...
 
bool are_weights_reshaped { false }
 
bool retain_internal_weights { false }
 Retain internal reshaped weights. More...
 
bool enable_fast_math { false }
 Enable fast math computation. More...
 
bool fp_mixed_precision { false }
 Use wider accumulators (32 bit instead of 16 for FP16) to improve accuracy. More...
 

Detailed Description

Fully connected layer info.

Definition at line 1829 of file Types.h.

Member Function Documentation

◆ set_transpose_weights()

FullyConnectedLayerInfo& set_transpose_weights ( bool  should_transpose_weights)
inline

Sets the transpose weights flag.

Parameters
[in]should_transpose_weightsBoolean flag indicating if weights should be transposed
Returns
Updated object

Definition at line 1859 of file Types.h.

1860  {
1861  transpose_weights = should_transpose_weights;
1862  return *this;
1863  }
bool transpose_weights
Transpose weights if true.
Definition: Types.h:1835

◆ set_weights_trained_layout()

FullyConnectedLayerInfo& set_weights_trained_layout ( DataLayout  layout)
inline

Sets the weights trained data layout.

Parameters
[in]layoutData layout that the weights were trained with
Returns
Updated object

Definition at line 1848 of file Types.h.

1849  {
1850  weights_trained_layout = layout;
1851  return *this;
1852  }
DataLayout weights_trained_layout
Layout that the weights have been trained with.
Definition: Types.h:1834

Field Documentation

◆ activation_info

◆ are_weights_reshaped

◆ enable_fast_math

bool enable_fast_math { false }

◆ fp_mixed_precision

bool fp_mixed_precision { false }

Use wider accumulators (32 bit instead of 16 for FP16) to improve accuracy.

Definition at line 1840 of file Types.h.

Referenced by arm_compute::operator<<().

◆ retain_internal_weights

bool retain_internal_weights { false }

◆ transpose_weights

◆ weights_trained_layout

DataLayout weights_trained_layout { DataLayout::NCHW }

Layout that the weights have been trained with.

Definition at line 1834 of file Types.h.

Referenced by ClFullyConnected::configure(), CpuFullyConnected::configure(), arm_compute::operator<<(), ClFullyConnected::validate(), and CpuFullyConnected::validate().


The documentation for this struct was generated from the following file: