meet_requirements
Applicable Products
All processors
Function Usage
Determines whether a node needs to be decomposed. It is optional, and the default return value is True.
Prototype
1 | meet_requirements(self, node: Node) -> bool |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
node |
Input |
Node to be determined, which is of the ge.graph.Node type. |
Returns
If True is returned, decomposition is required and replacement will be performed. If False is returned, decomposition is not required and the operation will be skipped. The default value is True.
Restrictions
None
Parent topic: DecomposePass