MCPcopy Index your code
hub / github.com/tensorflow/models / match

Method match

official/vision/utils/object_detection/matcher.py:202–221  ·  view source on GitHub ↗

Computes matches among row and column indices and returns the result. Computes matches among the row and column indices based on the similarity matrix and optional arguments. Args: similarity_matrix: Float tensor of shape [N, M] with pairwise similarity where higher value

(self, similarity_matrix, scope=None, **params)

Source from the content-addressed store, hash-verified

200 __metaclass__ = ABCMeta
201
202 def match(self, similarity_matrix, scope=None, **params):
203 """Computes matches among row and column indices and returns the result.
204
205 Computes matches among the row and column indices based on the similarity
206 matrix and optional arguments.
207
208 Args:
209 similarity_matrix: Float tensor of shape [N, M] with pairwise similarity
210 where higher value means more similar.
211 scope: Op scope name. Defaults to 'Match' if None.
212 **params: Additional keyword arguments for specific implementations of the
213 Matcher.
214
215 Returns:
216 A Match object with the results of matching.
217 """
218 if not scope:
219 scope = 'Match'
220 with tf.name_scope(scope) as scope:
221 return Match(self._match(similarity_matrix, **params))
222
223 @abstractmethod
224 def _match(self, similarity_matrix, **params):

Callers 9

_get_variable_nameMethod · 0.80
_get_kvMethod · 0.80
_build_assignment_mapFunction · 0.80
weight_decay_lossMethod · 0.80
assignMethod · 0.80
assignMethod · 0.80

Calls 2

_matchMethod · 0.95
MatchClass · 0.85

Tested by

no test coverage detected