Compute Library  18.05
WeightsInfo Class Reference

Convolution Layer Weights Information class. More...

#include <Types.h>

Public Member Functions

 WeightsInfo ()
 Default constructor. More...
 
 WeightsInfo (bool are_reshaped, unsigned int kernel_width, unsigned int kernel_height, unsigned int num_kernels)
 Constructor. More...
 
bool are_reshaped () const
 Flag which specifies if the weights tensor has been reshaped. More...
 
unsigned int num_kernels () const
 Return the number of convolution kernels. More...
 
std::pair< unsigned int, unsigned int > kernel_size () const
 Return the width and height of the kernel. More...
 

Detailed Description

Convolution Layer Weights Information class.

This class stores the necessary information to compute convolution layer when the weights are already reshaped

Definition at line 944 of file Types.h.

Constructor & Destructor Documentation

WeightsInfo ( )
inline

Default constructor.

Definition at line 948 of file Types.h.

949  : _are_reshaped(false), _kernel_width(0), _kernel_height(0), _num_kernels(0)
950  {
951  }
WeightsInfo ( bool  are_reshaped,
unsigned int  kernel_width,
unsigned int  kernel_height,
unsigned int  num_kernels 
)
inline

Constructor.

Parameters
[in]are_reshapedTrue if the weights have been reshaped
[in]kernel_widthKernel width.
[in]kernel_heightKernel height.
[in]num_kernelsNumber of convolution kernels.

Definition at line 959 of file Types.h.

960  : _are_reshaped(are_reshaped), _kernel_width(kernel_width), _kernel_height(kernel_height), _num_kernels(num_kernels)
961  {
962  }
bool are_reshaped() const
Flag which specifies if the weights tensor has been reshaped.
Definition: Types.h:967
unsigned int num_kernels() const
Return the number of convolution kernels.
Definition: Types.h:975

Member Function Documentation

bool are_reshaped ( ) const
inline

Flag which specifies if the weights tensor has been reshaped.

Returns
True if the weights tensors has been reshaped

Definition at line 967 of file Types.h.

Referenced by arm_compute::operator<<().

968  {
969  return _are_reshaped;
970  };
std::pair<unsigned int, unsigned int> kernel_size ( ) const
inline

Return the width and height of the kernel.

Returns
The width and height of the kernel

Definition at line 983 of file Types.h.

Referenced by arm_compute::operator<<().

984  {
985  return std::make_pair(_kernel_width, _kernel_height);
986  }
unsigned int num_kernels ( ) const
inline

Return the number of convolution kernels.

Returns
The number of convolution kernels

Definition at line 975 of file Types.h.

Referenced by arm_compute::operator<<().

976  {
977  return _num_kernels;
978  };

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