ArmNN
 24.02
ILayerSupport Class Reference

#include <ILayerSupport.hpp>

Inheritance diagram for ILayerSupport:
[legend]

Public Member Functions

virtual bool IsLayerSupported (const LayerType &type, const std::vector< TensorInfo > &infos, const BaseDescriptor &descriptor, const Optional< LstmInputParamsInfo > &lstmParamsInfo=EmptyOptional(), const Optional< QuantizedLstmInputParamsInfo > &quantizedLstmParamsInfo=EmptyOptional(), Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
 Default implementation of the ILayerSupport interface, Backends should implement this as a switch statement for each of their LayerTypes calling their specific backend implementation of IsXXXLayerSupported. More...
 

Protected Member Functions

 ILayerSupport ()
 
virtual ~ILayerSupport ()
 

Detailed Description

Definition at line 23 of file ILayerSupport.hpp.

Constructor & Destructor Documentation

◆ ILayerSupport()

ILayerSupport ( )
inlineprotected

Definition at line 26 of file ILayerSupport.hpp.

26 {}

◆ ~ILayerSupport()

virtual ~ILayerSupport ( )
inlineprotectedvirtual

Definition at line 27 of file ILayerSupport.hpp.

27 {}

Member Function Documentation

◆ IsLayerSupported()

bool IsLayerSupported ( const LayerType type,
const std::vector< TensorInfo > &  infos,
const BaseDescriptor descriptor,
const Optional< LstmInputParamsInfo > &  lstmParamsInfo = EmptyOptional(),
const Optional< QuantizedLstmInputParamsInfo > &  quantizedLstmParamsInfo = EmptyOptional(),
Optional< std::string & >  reasonIfUnsupported = EmptyOptional() 
) const
virtual

Default implementation of the ILayerSupport interface, Backends should implement this as a switch statement for each of their LayerTypes calling their specific backend implementation of IsXXXLayerSupported.

Reimplemented in LayerSupportBase, NeonLayerSupport, ClLayerSupport, GpuFsaLayerSupport, RefLayerSupport, TosaRefLayerSupport, and SampleDynamicLayerSupport.

Definition at line 17 of file ILayerSupport.cpp.

23 {
24  IgnoreUnused(infos);
25  IgnoreUnused(descriptor);
26  IgnoreUnused(lstmParamsInfo);
27  IgnoreUnused(quantizedLstmParamsInfo);
28  IgnoreUnused(reasonIfUnsupported);
29  switch (type)
30  {
31  case LayerType::Map:
32  return true;
33  case LayerType::Unmap:
34  return true;
35  default:
36  return false;
37  }
38 }

References armnn::IgnoreUnused(), armnn::Map, and armnn::Unmap.


The documentation for this class was generated from the following files:
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition: IgnoreUnused.hpp:14
armnn::LayerType::Map
@ Map
armnn::LayerType::Unmap
@ Unmap