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

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

#include <DepthwiseFilterCodec.h>

Public Member Functions

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

Detailed Description

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

Let us assume that "dec" is a depthwise filter decoder.

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

for each valid tensor_index for dec.shape(inp.shape) out.at(tensor_index) = inp.at(dec.value(tensor_index))

Definition at line 59 of file DepthwiseFilterCodec.h.

Constructor & Destructor Documentation

◆ ~DepthwiseFilterDecoder()

virtual loco::DepthwiseFilterDecoder::~DepthwiseFilterDecoder ( )
virtualdefault

Member Function Documentation

◆ shape()

◆ value()

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

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