MCPcopy Create free account
hub / github.com/tensorflow/models / find

Method find

official/projects/unified_detector/utils/utilities.py:212–217  ·  view source on GitHub ↗
(self, item: int)

Source from the content-addressed store, hash-verified

210 self._parent = list(range(num_elements))
211
212 def find(self, item: int) -> int:
213 if self._parent[item] == item:
214 return item
215 else:
216 self._parent[item] = self.find(self._parent[item])
217 return self._parent[item]
218
219 def union(self, i1: int, i2: int) -> None:
220 r1 = self.find(i1)

Callers 7

unionMethod · 0.95
to_groupMethod · 0.95
_einsum_flopsFunction · 0.80
evaluateMethod · 0.80
read_squad_examplesFunction · 0.80
get_final_textFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected