ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::DepthwiseFilterEncoder Struct Referenceabstract

Describe how to build a depthwise convolution filter from a tensor. More...

#include <DepthwiseFilterCodec.h>

Public Member Functions

virtual ~DepthwiseFilterEncoder ()=default
 
virtual DepthwiseFilterShape shape (const TensorShape &shape) const =0
 
virtual TensorIndex value (const DepthwiseFilterIndex &index) const =0
 

Detailed Description

Describe how to build a depthwise convolution filter from a tensor.

Let us assume that "enc" is a depthwise filter encoder.

Given a tensor "inp" and its shape "inp.shape", "enc" builds a depthwise filter "out" as follows:

for each valid filter_index for enc.shape(inp.shape) out.at(filter_index) = inp.at(enc.value(filter_index))

Definition at line 40 of file DepthwiseFilterCodec.h.

Constructor & Destructor Documentation

◆ ~DepthwiseFilterEncoder()

virtual loco::DepthwiseFilterEncoder::~DepthwiseFilterEncoder ( )
virtualdefault

Member Function Documentation

◆ shape()

◆ value()

virtual TensorIndex loco::DepthwiseFilterEncoder::value ( const DepthwiseFilterIndex index) const
pure virtual

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