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)
| 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): |
no test coverage detected