Compute Library
 23.11
DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage > Struct Template Reference

#include <depthwise_implementation.hpp>

Public Member Functions

bool get_is_supported (const DepthwiseArgs &args, const OutputStage &os) const
 
uint64_t get_cycle_estimate (const DepthwiseArgs &args, const OutputStage &os) const
 
DepthwiseCommon< TInput, TWeight, TOutput > * get_instance (const DepthwiseArgs &args, const OutputStage &os) const
 

Data Fields

const DepthwiseMethod method
 
const char * name
 
std::function< bool(const DepthwiseArgs &, const OutputStage &)> is_supported
 
std::function< uint64_t(const DepthwiseArgs &, const OutputStage &)> cycle_estimate
 
std::function< DepthwiseCommon< TInput, TWeight, TOutput > *(const DepthwiseArgs &, const OutputStage &)> initialise
 

Related Functions

(Note that these are not member functions.)

template<typename TInput , typename TWeight = TInput, typename TOutput = TInput, class OutputStage = Nothing>
const DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage > * depthwise_implementation_list ()
 

Detailed Description

template<typename TInput, typename TWeight = TInput, typename TOutput = TInput, class OutputStage = Nothing>
struct arm_conv::depthwise::DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage >

Definition at line 38 of file depthwise_implementation.hpp.

Member Function Documentation

◆ get_cycle_estimate()

uint64_t get_cycle_estimate ( const DepthwiseArgs &  args,
const OutputStage &  os 
) const
inline

◆ get_instance()

DepthwiseCommon<TInput, TWeight, TOutput>* get_instance ( const DepthwiseArgs &  args,
const OutputStage &  os 
) const
inline

Definition at line 56 of file depthwise_implementation.hpp.

57  {
58  auto impl = initialise(args, os);
59  impl->set_name(std::string(name));
60  return impl;
61  }

References GemmTuner::args, DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage >::initialise, and DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage >::name.

Referenced by arm_conv::depthwise::depthwise().

◆ get_is_supported()

bool get_is_supported ( const DepthwiseArgs &  args,
const OutputStage &  os 
) const
inline

Definition at line 46 of file depthwise_implementation.hpp.

47  {
48  return (is_supported == nullptr) ? true : is_supported(args, os);
49  }

References GemmTuner::args, and DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage >::is_supported.

Friends And Related Function Documentation

◆ depthwise_implementation_list()

const DepthwiseImplementation< TInput, TWeight, TOutput, OutputStage > * depthwise_implementation_list ( )
related

Definition at line 530 of file depthwise_fp32.cpp.

531 {
532  return depthwise_fp32_methods;
533 }

Field Documentation

◆ cycle_estimate

std::function<uint64_t(const DepthwiseArgs &, const OutputStage &)> cycle_estimate

◆ initialise

std::function<DepthwiseCommon<TInput, TWeight, TOutput> *(const DepthwiseArgs &, const OutputStage &)> initialise

◆ is_supported

std::function<bool(const DepthwiseArgs &, const OutputStage &)> is_supported

◆ method

const DepthwiseMethod method

Definition at line 40 of file depthwise_implementation.hpp.

◆ name


The documentation for this struct was generated from the following file:
GemmTuner.args
args
Definition: GemmTuner.py:679
arm_conv::depthwise::DepthwiseImplementation::initialise
std::function< DepthwiseCommon< TInput, TWeight, TOutput > *(const DepthwiseArgs &, const OutputStage &)> initialise
Definition: depthwise_implementation.hpp:44
arm_conv::depthwise::DepthwiseImplementation::cycle_estimate
std::function< uint64_t(const DepthwiseArgs &, const OutputStage &)> cycle_estimate
Definition: depthwise_implementation.hpp:43
arm_conv::depthwise::DepthwiseImplementation::is_supported
std::function< bool(const DepthwiseArgs &, const OutputStage &)> is_supported
Definition: depthwise_implementation.hpp:42
arm_conv::depthwise::DepthwiseImplementation::name
const char * name
Definition: depthwise_implementation.hpp:41