Compute Library
 22.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, TWeight, TOutput, TAccum, OutputStage >
 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 DepthfirstStrategyUntyped
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
 

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 216 of file depthwise_depthfirst_multiplier.hpp.

217  : DepthwiseDepthfirstStrategyCommon<TInput, TWeight, TOutput, TAccum, OutputStage>(
218  kern->get_output_rows(), kern->get_output_cols(),
219  args.kernel_rows, args.kernel_cols,
220  args.stride_rows, args.stride_cols
221  ),
222  m_kern(kern)
223  {
224  };

Member Function Documentation

◆ get_kernel()

◆ get_storage_size()

size_t get_storage_size ( const DepthwiseArgs &  args) const
inlineoverridevirtual

Reimplemented from DepthfirstStrategy< TInput, TWeight, TOutput, TAccum, OutputStage >.

Definition at line 229 of file depthwise_depthfirst_multiplier.hpp.

References arm_conv::depthwise::interleaves::get_storage_size_generic().

230  {
231  return interleaves::get_storage_size_generic(this->get_packing_args(args), args);
232  }
size_t get_storage_size_generic(const PackingArguments &packing_args, const DepthwiseArgs &args)
Definition: generic.cpp:45

◆ get_vl_type()

arm_gemm::VLType get_vl_type ( void  ) const
inlineoverridevirtual

Implements DepthfirstStrategyUntyped.

Definition at line 226 of file depthwise_depthfirst_multiplier.hpp.

226 { 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
inlineoverridevirtual

Reimplemented from DepthfirstStrategy< TInput, TWeight, TOutput, TAccum, OutputStage >.

Definition at line 234 of file depthwise_depthfirst_multiplier.hpp.

References arm_conv::depthwise::interleaves::pack_parameters_generic().

235  {
237  this->get_packing_args(args), args,
238  buffer, biases, weights, ld_weight_col, ld_weight_row
239  );
240  }
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

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