ArmNN
 22.05
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 GetNumViews () const
 Get the number of views/inputs. More...
 
uint32_t GetNumInputs () const
 Get the number of views/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 470 of file Descriptors.hpp.

471  : m_BiasEnabled(false)
472  , m_TransposeWeightMatrix(false)
473  , m_ConstantWeights(true)
474  {}
bool m_TransposeWeightMatrix
Enable/disable transpose weight matrix.
bool m_BiasEnabled
Enable/disable bias.
bool m_ConstantWeights
Enable/disable constant weights and biases.

Member Function Documentation

◆ GetNumInputs()

uint32_t GetNumInputs ( ) const

Get the number of views/inputs.

Definition at line 448 of file Descriptors.cpp.

References armnn::GetNumInputs().

Referenced by NetworkImpl::AddFullyConnectedLayer(), ClFullyConnectedWorkload::ClFullyConnectedWorkload(), and armnnDeserializer::GetOriginsDescriptor().

449 {
451 }
uint32_t GetNumInputs(bool biasEnabled)
bool m_BiasEnabled
Enable/disable bias.

◆ GetNumViews()

uint32_t GetNumViews ( ) const

Get the number of views/inputs.

Definition at line 453 of file Descriptors.cpp.

References armnn::GetNumInputs().

454 {
456 }
uint32_t GetNumInputs(bool biasEnabled)
bool m_BiasEnabled
Enable/disable bias.

◆ operator==()

bool operator== ( const FullyConnectedDescriptor rhs) const
inline

Definition at line 476 of file Descriptors.hpp.

References armnn::ARMNN_DEPRECATED_MSG_REMOVAL_DATE(), armnn::GetNumInputs(), FullyConnectedDescriptor::m_BiasEnabled, FullyConnectedDescriptor::m_ConstantWeights, and FullyConnectedDescriptor::m_TransposeWeightMatrix.

477  {
478  return m_BiasEnabled == rhs.m_BiasEnabled
479  && m_TransposeWeightMatrix == rhs.m_TransposeWeightMatrix
480  && m_ConstantWeights == rhs.m_ConstantWeights;
481  }
bool m_TransposeWeightMatrix
Enable/disable transpose weight matrix.
bool m_BiasEnabled
Enable/disable bias.
bool m_ConstantWeights
Enable/disable constant weights and biases.

Member Data Documentation

◆ m_BiasEnabled

◆ m_ConstantWeights

◆ m_TransposeWeightMatrix


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