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

Function test_ambiguous_function_name

tests/python/relax/test_inline_functions.py:70–85  ·  view source on GitHub ↗

Raise an error on ambiguous inputs For convenience, the function being replaced can be specified either as a string, or as a GlobalVar. However, all replacements must be unambiguous.

()

Source from the content-addressed store, hash-verified

68
69
70def test_ambiguous_function_name():
71 """Raise an error on ambiguous inputs
72
73 For convenience, the function being replaced can be specified
74 either as a string, or as a GlobalVar. However, all replacements
75 must be unambiguous.
76 """
77
78 @R.function
79 def func():
80 return R.tuple()
81
82 gvar = tvm.ir.GlobalVar("name")
83
84 with pytest.raises(ValueError):
85 func.inline_functions({gvar: func, "name": func})
86
87
88def test_inline_dataflow_block():

Callers

nothing calls this directly

Calls 1

inline_functionsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…