Compute Library
 23.05
DepthfirstStrategyUntyped Class Referenceabstract

#include <depthwise_strategies_common.hpp>

Collaboration diagram for DepthfirstStrategyUntyped:
[legend]

Public Member Functions

virtual arm_gemm::VLType get_vl_type () const =0
 
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

Definition at line 34 of file depthwise_strategies_common.hpp.

Member Function Documentation

◆ get_accumulator_depth_vl()

◆ get_input_cols()

◆ get_input_rows()

◆ get_kernel_cols()

◆ get_kernel_packing_point()

bool get_kernel_packing_point ( const unsigned int  index,
unsigned int &  x,
unsigned int &  y 
) const
virtual

Definition at line 46 of file depthwise_strategies_common.cpp.

References DepthfirstStrategyUntyped::get_kernel_cols(), and DepthfirstStrategyUntyped::get_kernel_rows().

Referenced by DepthfirstStrategy< __fp16, __fp16, __fp16, __fp16, typename DefaultOutputStage< __fp16 >::Type >::get_storage_size(), and DepthfirstStrategy< __fp16, __fp16, __fp16, __fp16, typename DefaultOutputStage< __fp16 >::Type >::pack_parameters().

47 {
48  // Get the kernel point to pack at the given index; return false to
49  // indicate that this index, and all greater indices, is out of range.
50  if (index < (this->get_kernel_cols() * this->get_kernel_rows()))
51  {
52  y = index % this->get_kernel_cols();
53  x = index / this->get_kernel_cols();
54  return true;
55  }
56  return false;
57 }
virtual unsigned int get_kernel_cols() const =0
virtual unsigned int get_kernel_rows() const =0

◆ get_kernel_rows()

◆ get_n_input_points()

unsigned int get_n_input_points ( ) const
virtual

◆ get_n_kernel_points()

unsigned int get_n_kernel_points ( ) const
virtual

◆ get_n_output_points()

unsigned int get_n_output_points ( ) const
virtual

Definition at line 41 of file depthwise_strategies_common.cpp.

References IDepthfirstStrategy::get_output_cols(), and IDepthfirstStrategy::get_output_rows().

41 { return this->get_output_rows() * this->get_output_cols(); }
virtual unsigned int get_output_rows() const =0
virtual unsigned int get_output_cols() const =0

◆ get_stride_cols()

◆ get_stride_rows()

◆ get_vl_type()


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