AllNodesMap

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Description

Obtains the node map associated with a scope,

including the nodes associated with the scope and subscope. All associated nodes are obtained through recursion.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
const std::unordered_map<std::string, ge::OperatorPtr> &AllNodesMap() const;
Status AllNodesMap(std::unordered_map<AscendString, ge::OperatorPtr> &node_map) const;

Parameters

Parameter

Input/Output

Description

node_map

Output

Node map of a scope

Returns

Parameter

Description

-

Node map of a scope

Restrictions

None