Compute Library
 23.08
GenericDepthfirstMultiplierStrategy< TInput, TWeight, TOutput, TAccum, OutputStage > Class Template Reference

#include <depthwise_depthfirst_multiplier.hpp>

Collaboration diagram for GenericDepthfirstMultiplierStrategy< TInput, TWeight, TOutput, TAccum, OutputStage >:
[legend]

Public Member Functions

 GenericDepthfirstMultiplierStrategy (KernelStrategyType *kern, const DepthwiseArgs &args)
 
arm_gemm::VLType get_vl_type (void) const override
 
const KernelStrategyType::KernelType get_kernel (void) const
 
size_t get_storage_size (const DepthwiseArgs &args) const override
 
void pack_parameters (const DepthwiseArgs &args, void *buffer, const void *biases, const OutputStage &, const void *weights, size_t ld_weight_col, size_t ld_weight_row) const override
 
- Public Member Functions inherited from DepthwiseDepthfirstStrategyCommon< TInput, TInput, TInput, typename DefaultTAccum< TInput >::Type, typename DefaultOutputStage< TInput >::Type >
 DepthwiseDepthfirstStrategyCommon (unsigned int output_rows, unsigned int output_cols, unsigned int kernel_rows, unsigned int kernel_cols, unsigned int stride_rows=1, unsigned int stride_cols=1)
 
 DepthwiseDepthfirstStrategyCommon (unsigned int output_size, unsigned int kernel_size, unsigned int stride=1)
 
virtual ~DepthwiseDepthfirstStrategyCommon ()
 
unsigned int get_output_rows () const override
 
unsigned int get_output_cols () const override
 
unsigned int get_kernel_rows () const override
 
unsigned int get_kernel_cols () const override
 
unsigned int get_stride_rows () const override
 
unsigned int get_stride_cols () const override
 
- Public Member Functions inherited from DepthfirstStrategy< TInput, TInput, TInput, typename DefaultTAccum< TInput >::Type, typename DefaultOutputStage< TInput >::Type >
virtual void pack_parameters (const DepthwiseArgs &args, void *buffer, const void *biases, const typename DefaultOutputStage< TInput >::Type &, const void *weights, size_t ld_weight_col, size_t ld_weight_row) const
 
- Public Member Functions inherited from DepthfirstStrategyUntyped
virtual unsigned int get_kernel_rows () const =0
 
virtual unsigned int get_kernel_cols () const =0
 
virtual unsigned int get_stride_rows () const =0
 
virtual unsigned int get_stride_cols () const =0
 
virtual unsigned int get_input_rows () const override
 
virtual unsigned int get_input_cols () const override
 
virtual unsigned int get_n_input_points () const
 
virtual unsigned int get_n_output_points () const
 
virtual unsigned int get_n_kernel_points () const
 
virtual unsigned int get_accumulator_depth_vl () const
 
virtual bool get_kernel_packing_point (const unsigned int index, unsigned int &x, unsigned int &y) const
 
- Public Member Functions inherited from IDepthfirstStrategy
virtual ~IDepthfirstStrategy ()=default
 
virtual unsigned int get_output_rows () const =0
 
virtual unsigned int get_output_cols () const =0
 

Detailed Description

template<typename TInput, typename TWeight = TInput, typename TOutput = TInput, typename TAccum = typename DefaultTAccum<TInput>::Type, typename OutputStage = typename DefaultOutputStage<TOutput>::Type>
class arm_conv::depthwise::GenericDepthfirstMultiplierStrategy< TInput, TWeight, TOutput, TAccum, OutputStage >

Definition at line 189 of file depthwise_depthfirst_multiplier.hpp.

Constructor & Destructor Documentation

◆ GenericDepthfirstMultiplierStrategy()

GenericDepthfirstMultiplierStrategy ( KernelStrategyType kern,
const DepthwiseArgs &  args 
)
inline

Definition at line 220 of file depthwise_depthfirst_multiplier.hpp.

221  : DepthwiseDepthfirstStrategyCommon<TInput, TWeight, TOutput, TAccum, OutputStage>(
222  kern->get_output_rows(), kern->get_output_cols(),
223  args.kernel_rows, args.kernel_cols,
224  args.stride_rows, args.stride_cols
225  ),
226  m_kern(kern)
227  {
228  };

Member Function Documentation

◆ get_kernel()

◆ get_storage_size()

size_t get_storage_size ( const DepthwiseArgs &  args) const
inlineoverridevirtual

◆ get_vl_type()

arm_gemm::VLType get_vl_type ( void  ) const
inlineoverridevirtual

Implements DepthfirstStrategyUntyped.

Definition at line 230 of file depthwise_depthfirst_multiplier.hpp.

230 { return m_kern->get_vl_type(); }

◆ pack_parameters()

void pack_parameters ( const DepthwiseArgs &  args,
void *  buffer,
const void *  biases,
const OutputStage &  ,
const void *  weights,
size_t  ld_weight_col,
size_t  ld_weight_row 
) const
inlineoverride

Definition at line 238 of file depthwise_depthfirst_multiplier.hpp.

239  {
241  this->get_packing_args(args), args,
242  buffer, biases, weights, ld_weight_col, ld_weight_row
243  );
244  }

References GemmTuner::args, and arm_conv::depthwise::interleaves::pack_parameters_generic().


The documentation for this class was generated from the following file:
GemmTuner.args
args
Definition: GemmTuner.py:679
arm_conv::depthwise::interleaves::pack_parameters_generic
void pack_parameters_generic(const PackingArguments &packing_args, const DepthwiseArgs &args, void *buffer_raw, const void *biases_raw, const void *weights_raw, size_t ld_weight_col, size_t ld_weight_row)
Definition: generic.cpp:67
arm_conv::depthwise::interleaves::get_storage_size_generic
size_t get_storage_size_generic(const PackingArguments &packing_args, const DepthwiseArgs &args)
Definition: generic.cpp:45