Overview
It is the result of a pattern match, which is a borrowed MatchResult from the C++ side. Its lifecycle is managed by the engine or bridge layer. It is used as an input parameter in PatternFusionPass.meet_requirements and replacement.
Restrictions
- Do not retain MatchResult outside the current meet_requirements or replacement call.
- After the bridge layer calls _invalidate() in finally, subsequent method calls may fail.
- get_captured_tensor(i): The value of i must be consistent with the sequence of capture_tensor. Otherwise, the C++ layer will fail and throw an exception.
- _invalidate() is called only at the GE bridge layer. Do not call it in the pass code.
Parent topic: MatchResult