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

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 44 of file PassManagerTest.cpp.

Member Function Documentation

◆ run()

PassData DummyPass2::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 47 of file PassManagerTest.cpp.

48 {
49 auto tv = static_cast<mir::TensorVariant *>(data);
50
51 if (!tv)
52 {
53 throw PassException();
54 }
55
56 return nullptr;
57 }
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: