EnableConstValueMatch
Applicable Products
All processors
Header File/Library File
- Header file: #include <ge/fusion/pattern_matcher_config.h>
- Library file: libge_compiler.so
Function Usage
Configures the constant value matching capability of PatternMatcher.
After this function is called, PatternMatcher performs strict value comparison on the Tensors carried by const/constant nodes defined in the pattern during graph matching. A match is considered successful only when the constant values in the actual graph are exactly equal (binary match) to those defined in the pattern.
Prototype
1 | PatternMatcherConfigBuilder &EnableConstValueMatch() |
Parameters
None
Returns
A reference to PatternMatcherConfigBuilder, enabling cascading calls of member functions.
Restrictions
Binary matching, a strict matching mode, is used. If the result is not as expected, disable this function and process the value verification logic in the pass.
Parent topic: PatternMatcherConfigBuilder