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

Function test_seq_expr

tests/python/relax/test_expr_functor.py:406–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405
406def test_seq_expr():
407 bindings = [relax.VarBinding(x, relax.const(1))]
408 blocks = [relax.BindingBlock(bindings)]
409 seq_expr = relax.SeqExpr(blocks, x)
410 basic_check(
411 seq_expr,
412 "\n".join(
413 [
414 "SeqExpr",
415 "\tBindingBlock",
416 "\t\tVarBinding",
417 "\t\t\tConstant",
418 "\t\t\tVarDef",
419 "\tVar",
420 ]
421 ),
422 "\n".join(["Constant", "VarDef", "VarBinding", "BindingBlock", "Var", "SeqExpr"]),
423 )
424
425
426def test_shape_expr():

Callers

nothing calls this directly

Calls 2

basic_checkFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…