Class Delegate

Inheritance Relationships

Base Type

  • public IDelegate< LiteDelegateGraph, kernel::Kernel, kernel::Kernel >

Derived Type

Class Documentation

class Delegate : public IDelegate<LiteDelegateGraph, kernel::Kernel, kernel::Kernel>

Subclassed by mindspore::CoreMLDelegate

Public Functions

virtual Status Init() = 0

Init delegate.

Note

Init will be called in Model::Build.

Returns

Status. If Status is kLiteNotSupport, the program will return to the MindSpore Lite inner inference.

inline void ReplaceNodes(const std::shared_ptr<LiteDelegateGraph> &graph) override

Replace the nodes in model with delegate nodes, delegate will create kernels by its delegate nodes.

Parameters

graph[in] The graph to be built.

virtual Status Build(LiteDelegateGraph *model) = 0

Build delegate graph for MindSpore model.

Note

Build will be called in Model::Build.

Note

deprecated, use ReplaceNodes and CreateKernel to build delegate model.

Parameters

model[in] Define the delegate model to be built.