Compute Library
 23.11
InputPatchElement< T, IsGeneric, OutputStage > Class Template Reference

#include <depthwise_depthfirst_multiplier.hpp>

Data Structures

struct  Workspace
 

Static Public Member Functions

static size_t get_element_size (const WorkspaceArgs< IDepthfirstStrategy, OutputStage > &args)
 
template<class WorkspaceType >
static void * initialise (WorkspaceType *ws, void *buffer, const WorkspaceArgs< IDepthfirstStrategy, OutputStage > &args)
 

Detailed Description

template<typename T, bool IsGeneric = false, typename OutputStage = Nothing>
class arm_conv::depthwise::depthfirst_multiplier::InputPatchElement< T, IsGeneric, OutputStage >

Definition at line 255 of file depthwise_depthfirst_multiplier.hpp.

Member Function Documentation

◆ get_element_size()

static size_t get_element_size ( const WorkspaceArgs< IDepthfirstStrategy, OutputStage > &  args)
inlinestatic

Definition at line 266 of file depthwise_depthfirst_multiplier.hpp.

267  {
268  return sizeof_input_rows(args) + sizeof_input_padding(args) + sizeof_input_patch(args);
269  }

References GemmTuner::args.

◆ initialise()

static void* initialise ( WorkspaceType *  ws,
void *  buffer,
const WorkspaceArgs< IDepthfirstStrategy, OutputStage > &  args 
)
inlinestatic

Definition at line 272 of file depthwise_depthfirst_multiplier.hpp.

273  {
274  auto buffer_bytes = reinterpret_cast<char *>(buffer);
275 
276  ws->input_rows = reinterpret_cast<const T **>(buffer_bytes);
277  buffer_bytes += sizeof_input_rows(args);
278 
279  ws->input_padding = reinterpret_cast<T*>(buffer_bytes);
280  buffer_bytes += sizeof_input_padding(args);
281 
282  ws->input_patch = reinterpret_cast<T*>(buffer_bytes);
283  buffer_bytes += sizeof_input_patch(args);
284 
285  // Initialise the padding
286  memset(ws->input_padding,
287  get_input_buffer_fill_value(args.output_stage),
288  sizeof_input_padding(args));
289 
290  return buffer_bytes;
291  }

References GemmTuner::args.


The documentation for this class was generated from the following file:
GemmTuner.args
args
Definition: GemmTuner.py:679