Compute Library
 22.08
DepthwiseDepthfirstStrategy< TInput, TWeight, TOutput, int32_t > Class Template Referenceabstract

#include <depthwise_depthfirst.hpp>

Collaboration diagram for DepthwiseDepthfirstStrategy< TInput, TWeight, TOutput, int32_t >:
[legend]

Public Types

typedef void(* KernelType) (unsigned int, const TInput *const *, const TWeight *, const int32_t *, const arm_gemm::Requantize32 &, const int32_t *, const int32_t *, TOutput *const *)
 

Public Member Functions

virtual KernelType get_kernel () const =0
 
size_t get_storage_size (const DepthwiseArgs &args) const override
 
void pack_parameters (const DepthwiseArgs &args, void *buffer, const void *biases, const arm_gemm::Requantize32 &, const void *weights, size_t ld_weight_col, size_t ld_weight_row) const override
 
- Public Member Functions inherited from DepthwiseDepthfirstStrategyCommon< TInput, TWeight, TOutput, int32_t, arm_gemm::Requantize32 >
 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 arm_gemm::VLType get_vl_type () 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
 

Detailed Description

template<typename TInput, typename TWeight, typename TOutput>
class arm_conv::depthwise::DepthwiseDepthfirstStrategy< TInput, TWeight, TOutput, int32_t >

Definition at line 108 of file depthwise_depthfirst.hpp.

Member Typedef Documentation

◆ KernelType

typedef void(* KernelType) (unsigned int, const TInput *const *, const TWeight *, const int32_t *, const arm_gemm::Requantize32 &, const int32_t *, const int32_t *, TOutput *const *)

Definition at line 128 of file depthwise_depthfirst.hpp.

Member Function Documentation

◆ get_kernel()

virtual KernelType get_kernel ( ) const
pure virtual

◆ get_storage_size()

size_t get_storage_size ( const DepthwiseArgs &  args) const
inlineoverridevirtual

Reimplemented from DepthfirstStrategy< TInput, TWeight, TOutput, int32_t, arm_gemm::Requantize32 >.

Definition at line 139 of file depthwise_depthfirst.hpp.

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

140  {
141  return interleaves::get_storage_size_generic(get_packing_args(), args);
142  }
size_t get_storage_size_generic(const PackingArguments &packing_args, const DepthwiseArgs &args)
Definition: generic.cpp:45

◆ pack_parameters()

void pack_parameters ( const DepthwiseArgs &  args,
void *  buffer,
const void *  biases,
const arm_gemm::Requantize32 ,
const void *  weights,
size_t  ld_weight_col,
size_t  ld_weight_row 
) const
inlineoverridevirtual

Reimplemented from DepthfirstStrategy< TInput, TWeight, TOutput, int32_t, arm_gemm::Requantize32 >.

Definition at line 144 of file depthwise_depthfirst.hpp.

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

149  {
151  get_packing_args(), args, buffer, biases, weights, ld_weight_col, ld_weight_row);
152  }
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: