Searched refs:pattern_or_name (Results 1 – 1 of 1) sorted by relevance
164 def _to_pattern(self, pattern_or_name): argument165 if isinstance(pattern_or_name, Pattern):166 return pattern_or_name168 if isinstance(pattern_or_name, str):169 if pattern_or_name not in self._name_to_pattern:171 return self._name_to_pattern[pattern_or_name]174 type(pattern_or_name))176 def _get_op_tensor(self, pattern_or_name): argument177 pattern = self._to_pattern(pattern_or_name)186 def get_op(self, pattern_or_name): argument[all …]