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

Function test_call

tests/python/relax/test_expr.py:289–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287
288
289def test_call():
290 dtype = rx.PrimStructInfo("int32")
291 func = rx.Var("func", rx.FuncStructInfo([dtype], dtype))
292 arg = rx.Var("arg", dtype)
293 call = rx.Call(func, [arg])
294 assert call.op.same_as(func)
295 assert len(call.args) == 1
296 assert call.args[0].same_as(arg)
297
298
299def test_call_raises_error_for_invalid_function():

Callers

nothing calls this directly

Calls 1

same_asMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…