Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
def
_gcd(lhs: int, rhs: int) -> int:
57
while
rhs:
58
lhs, rhs = rhs, lhs % rhs
59
return
abs(lhs)
60
61
62
def
_extended_gcd(lhs: int, rhs: int) -> tuple[int, int, int]:
Callers
1
modulo
Method · 0.85
Calls
1
abs
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…