ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnc::Pass Class Referenceabstract

this class represent an interface for all compiler passes like that frontend, backend etc More...

#include <Pass.h>

Public Member Functions

virtual PassData run (PassData data)=0
 run compiler pass
 
virtual void cleanup ()
 clean compiler pass data
 
virtual ~Pass ()=default
 
virtual std::string getName ()
 

Detailed Description

this class represent an interface for all compiler passes like that frontend, backend etc

Definition at line 30 of file Pass.h.

Constructor & Destructor Documentation

◆ ~Pass()

virtual nnc::Pass::~Pass ( )
virtualdefault

Member Function Documentation

◆ cleanup()

virtual void nnc::Pass::cleanup ( )
inlinevirtual

clean compiler pass data

Reimplemented in nnc::DataFormatSwitcher, and nnc::LowerConv2D.

Definition at line 44 of file Pass.h.

44{};

◆ getName()

virtual std::string nnc::Pass::getName ( )
inlinevirtual

◆ run()

virtual PassData nnc::Pass::run ( PassData  data)
pure virtual

run compiler pass

Parameters
data- data that pass is taken
Returns
data that can be passed to the next pass
Exceptions
PassExceptionobject if errors occured

Implemented in nnc::DumperPass, nnc::CombineTransposes, nnc::ConstantFoldTranspose, nnc::DeadCodeElimination, nnc::FuseArithmeticOps, nnc::SinkRelu, nnc::SinkTranspose, nnc::DataFormatSwitcher, nnc::LowerConv2D, DummyPass1, and DummyPass2.

Referenced by package.infer.session::inference().


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