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

Function _extended_gcd

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

Source from the content-addressed store, hash-verified

60
61
62def _extended_gcd(lhs: int, rhs: int) -> tuple[int, int, int]:
63 if rhs == 0:
64 return lhs, 1, 0
65 gcd, x1, y1 = _extended_gcd(rhs, lhs % rhs)
66 return gcd, y1, x1 - (lhs // rhs) * y1
67
68
69def _mod_inverse(value: int, modulus: int) -> int:

Callers 1

_mod_inverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…