Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuation of the pattern cleanup. End goal is to have a small standalone pattern IR, and separate the matching algorithm (and other utilities like 'commute') out of the IR, allowing same IR to be used by different matching algorithms, which is yet to be done. This PR * Simplifies the core pattern constructs (primitives, used to match against strings, as well as attribute-patterns). * Removes names from primitives, attribute-patterns can have optional name used for binding in a match. * Introduce GraphPattern TODO: * And other fields (like `nodes`) to GraphPattern (used by multi-output matcher, not single-output matcher). * Introduce pattern-builder object as parameter to function constructing target-graph-pattern * Reimplement commutes() externally (fixing a bug that exists there). * Support for tensor constants, as well as approximate-equality comparison for floats. (Switching defaults here.) --------- Co-authored-by: Justin Chu <[email protected]>
- Loading branch information