ONE - On-device Neural Engine
Loading...
Searching...
No Matches
DummyPass1 Class Reference
Collaboration diagram for DummyPass1:

Public Member Functions

PassData run (PassData data) override
 run compiler pass
 
- Public Member Functions inherited from nnc::Pass
virtual void cleanup ()
 clean compiler pass data
 
virtual ~Pass ()=default
 
virtual std::string getName ()
 

Detailed Description

Definition at line 28 of file PassManagerTest.cpp.

Member Function Documentation

◆ run()

PassData DummyPass1::run ( PassData  data)
inlineoverridevirtual

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

Implements nnc::Pass.

Definition at line 31 of file PassManagerTest.cpp.

32 {
33 auto graph = static_cast<mir::Graph *>(data);
34
35 if (!graph)
36 {
37 throw PassException();
38 }
39
40 return graph;
41 }
objects of this class are to be thrown from Passes if errors are occurred

Referenced by package.infer.session::inference(), and TEST().


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