ArmNN
 25.11
Loading...
Searching...
No Matches
FullyConnectedDescriptor Struct Reference

A FullyConnectedDescriptor for the FullyConnectedLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for FullyConnectedDescriptor:
[legend]
Collaboration diagram for FullyConnectedDescriptor:
[legend]

Public Member Functions

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

Public Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ FullyConnectedDescriptor()

Definition at line 509 of file Descriptors.hpp.

510 : m_BiasEnabled(false)
511 , m_TransposeWeightMatrix(false)
512 , m_ConstantWeights(true)
513 {}

References m_BiasEnabled, m_ConstantWeights, and m_TransposeWeightMatrix.

Referenced by operator==().

Member Function Documentation

◆ GetNumInputs()

uint32_t GetNumInputs ( ) const

Get the number of inputs.

Definition at line 475 of file Descriptors.cpp.

476{
477 return armnn::GetNumInputs(m_BiasEnabled);
478}
uint32_t GetNumInputs(bool biasEnabled)

References armnn::GetNumInputs(), and m_BiasEnabled.

Referenced by ClFullyConnectedWorkload::ClFullyConnectedWorkload(), and NeonFullyConnectedWorkload::NeonFullyConnectedWorkload().

◆ operator==()

bool operator== ( const FullyConnectedDescriptor & rhs) const
inline

Definition at line 515 of file Descriptors.hpp.

516 {
517 return m_BiasEnabled == rhs.m_BiasEnabled
518 && m_TransposeWeightMatrix == rhs.m_TransposeWeightMatrix
519 && m_ConstantWeights == rhs.m_ConstantWeights;
520 }

References FullyConnectedDescriptor(), m_BiasEnabled, m_ConstantWeights, and m_TransposeWeightMatrix.

Member Data Documentation

◆ m_BiasEnabled

◆ m_ConstantWeights

bool m_ConstantWeights

◆ m_TransposeWeightMatrix


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