MCPcopy Create free account
hub / github.com/apache/tvm-ffi / run_int_pair

Function run_int_pair

examples/python_packaging/run_example.py:45–51  ·  view source on GitHub ↗

Invoke IntPair from the extension to demonstrate object handling.

()

Source from the content-addressed store, hash-verified

43
44
45def run_int_pair() -> None:
46 """Invoke IntPair from the extension to demonstrate object handling."""
47 print("=========== Example 4: IntPair ===========")
48 pair = my_ffi_extension.IntPair(1, 2) # ty: ignore[too-many-positional-arguments]
49 print(f"a={pair.a}")
50 print(f"b={pair.b}")
51 print(f"sum={pair.sum()}")
52
53
54if __name__ == "__main__":

Callers 1

run_example.pyFile · 0.85

Calls 1

sumMethod · 0.95

Tested by

no test coverage detected