Template Class IDelegate
Defined in File delegate_api.h
Inheritance Relationships
Base Type
public mindspore::AbstractDelegate
Derived Type
public mindspore::Delegate
(Class Delegate)
Class Documentation
-
template<typename Graph, typename Node, typename Kernel>
class IDelegate : public mindspore::AbstractDelegate Subclassed by mindspore::Delegate
Public Functions
-
virtual void ReplaceNodes(const std::shared_ptr<Graph> &graph) = 0
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 bool IsDelegateNode(const std::shared_ptr<Node> &node) = 0
Check if this node is belong to this delegate.
- Parameters
node – [in] The node need to be checked.
- Returns
True if the node is belong to this delegate, otherwise return false.
-
virtual void ReplaceNodes(const std::shared_ptr<Graph> &graph) = 0