Class PassBase

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.

Parameters

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.

Parameters

func_graph[in] Define the struct of the model.

Returns

Boolean value to represent whether the operation is successful or not.