ArmNN
 21.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...
 

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

A FullyConnectedDescriptor for the FullyConnectedLayer.

Definition at line 389 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ FullyConnectedDescriptor()

Definition at line 391 of file Descriptors.hpp.

392  : m_BiasEnabled(false)
393  , m_TransposeWeightMatrix(false)
394  , m_ConstantWeights(true)
395  {}
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

◆ GetNumViews()

uint32_t GetNumViews ( ) const

Get the number of views/inputs.

Definition at line 428 of file Descriptors.cpp.

429 {
430  // Return 1 with constant weights, otherwise check if bias is enabled
431  uint32_t numInputs = 1;
432  if (!m_ConstantWeights)
433  {
434  // non-const weights
435  numInputs = 2;
436  if (m_BiasEnabled)
437  {
438  // non-const bias
439  numInputs = 3;
440  }
441  }
442  return numInputs;
443 }
bool m_BiasEnabled
Enable/disable bias.
bool m_ConstantWeights
Enable/disable constant weights and biases.

◆ operator==()

bool operator== ( const FullyConnectedDescriptor rhs) const
inline

Definition at line 397 of file Descriptors.hpp.

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

398  {
399  return m_BiasEnabled == rhs.m_BiasEnabled
400  && m_TransposeWeightMatrix == rhs.m_TransposeWeightMatrix
401  && m_ConstantWeights == rhs.m_ConstantWeights;
402  }
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: