Class PassBase
- Defined in File pass_base.h 
Class Documentation
- 
class PassBase
- PassBase defined a base class, which provides an interface for user to operate FuncGraph. - Public Functions - 
inline explicit PassBase(const std::string &name = "PassBase")
- Constructor. - 参数
- name – [in] Define pass name, which should be unique with each other. 
 
 - 
virtual ~PassBase() = default
- Destructor. 
 - 
virtual bool Execute(const api::FuncGraphPtr &func_graph) = 0
- An interface for user to operate FuncGraph. - 参数
- func_graph – [in] Define the struct of the model. 
- 返回
- Boolean value to represent whether the operation is successful or not. 
 
 
- 
inline explicit PassBase(const std::string &name = "PassBase")