(self, op, tensor)
| 117 | self._sub_patterns = sub_patterns |
| 118 | |
| 119 | def match(self, op, tensor): |
| 120 | for sub_pattern in self._sub_patterns: |
| 121 | match_result = sub_pattern.match(op, tensor) |
| 122 | if match_result is not None: |
| 123 | return match_result |
| 124 | return None |
| 125 | |
| 126 | |
| 127 | class MatchResult(object): |