Class Delegate
Defined in File delegate.h
Inheritance Relationships
Base Type
public IDelegate< LiteDelegateGraph, kernel::Kernel, kernel::Kernel >
Derived Type
public mindspore::CoreMLDelegate
(Class CoreMLDelegate)
Class Documentation
-
class Delegate : public IDelegate<LiteDelegateGraph, kernel::Kernel, kernel::Kernel>
Subclassed by mindspore::CoreMLDelegate
Public Functions
-
virtual Status Init() = 0
Init delegate.
说明
Init will be called in Model::Build.
- 返回
Status. If Status is kLiteNotSupport, the program will return to the MindSpore Lite inner inference.
Replace the nodes in model with delegate nodes, delegate will create kernels by its delegate nodes.
- 参数
graph – [in] The graph to be built.
-
virtual Status Build(LiteDelegateGraph *model) = 0
Build delegate graph for MindSpore model.
说明
Build will be called in Model::Build.
说明
deprecated, use ReplaceNodes and CreateKernel to build delegate model.
- 参数
model – [in] Define the delegate model to be built.
-
virtual Status Init() = 0