ArmNN
 23.02
FullyConnectedDescriptor Struct Reference

A FullyConnectedDescriptor for the FullyConnectedLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for FullyConnectedDescriptor:
BaseDescriptor

Public Member Functions

 FullyConnectedDescriptor ()
 
bool operator== (const FullyConnectedDescriptor &rhs) const
 
uint32_t GetNumInputs () const
 Get the number of inputs. More...
 
- Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
 
virtual ~BaseDescriptor ()=default
 

Public Attributes

bool m_BiasEnabled
 Enable/disable bias. More...
 
bool m_TransposeWeightMatrix
 Enable/disable transpose weight matrix. More...
 
bool m_ConstantWeights
 Enable/disable constant weights and biases. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ FullyConnectedDescriptor()

Definition at line 477 of file Descriptors.hpp.

478  : m_BiasEnabled(false)
479  , m_TransposeWeightMatrix(false)
480  , m_ConstantWeights(true)
481  {}

Member Function Documentation

◆ GetNumInputs()

uint32_t GetNumInputs ( ) const

Get the number of inputs.

Definition at line 448 of file Descriptors.cpp.

449 {
451 }

References armnn::GetNumInputs(), and FullyConnectedDescriptor::m_BiasEnabled.

Referenced by ClFullyConnectedWorkload::ClFullyConnectedWorkload().

◆ operator==()

bool operator== ( const FullyConnectedDescriptor rhs) const
inline

Definition at line 483 of file Descriptors.hpp.

484  {
485  return m_BiasEnabled == rhs.m_BiasEnabled
486  && m_TransposeWeightMatrix == rhs.m_TransposeWeightMatrix
487  && m_ConstantWeights == rhs.m_ConstantWeights;
488  }

References FullyConnectedDescriptor::m_BiasEnabled, FullyConnectedDescriptor::m_ConstantWeights, and FullyConnectedDescriptor::m_TransposeWeightMatrix.

Member Data Documentation

◆ m_BiasEnabled

◆ m_ConstantWeights

bool m_ConstantWeights

Enable/disable constant weights and biases.

Definition at line 498 of file Descriptors.hpp.

Referenced by LayerSupportHandle::IsFullyConnectedSupported(), and FullyConnectedDescriptor::operator==().

◆ m_TransposeWeightMatrix


The documentation for this struct was generated from the following files:
armnn::FullyConnectedDescriptor::m_BiasEnabled
bool m_BiasEnabled
Enable/disable bias.
Definition: Descriptors.hpp:494
armnn::FullyConnectedDescriptor::m_ConstantWeights
bool m_ConstantWeights
Enable/disable constant weights and biases.
Definition: Descriptors.hpp:498
armnn::GetNumInputs
uint32_t GetNumInputs(bool biasEnabled)
Definition: Descriptors.cpp:428
armnn::FullyConnectedDescriptor::m_TransposeWeightMatrix
bool m_TransposeWeightMatrix
Enable/disable transpose weight matrix.
Definition: Descriptors.hpp:496