MCPcopy Create free account
hub / github.com/apache/tvm / _gcd

Function _gcd

python/tvm/tirx/exec_context.py:56–59  ·  view source on GitHub ↗
(lhs: int, rhs: int)

Source from the content-addressed store, hash-verified

54
55
56def _gcd(lhs: int, rhs: int) -> int:
57 while rhs:
58 lhs, rhs = rhs, lhs % rhs
59 return abs(lhs)
60
61
62def _extended_gcd(lhs: int, rhs: int) -> tuple[int, int, int]:

Callers 1

moduloMethod · 0.85

Calls 1

absFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…