MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / match

Method match

tensorflow/contrib/quantize/python/graph_matcher.py:119–124  ·  view source on GitHub ↗
(self, op, tensor)

Source from the content-addressed store, hash-verified

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
127class MatchResult(object):

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected