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

Function _expected

tests/python/relax/test_tvmscript_parser.py:438–447  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

436 return gv0
437
438 def _expected(name: str):
439 n, m = tirx.Var("n", "int64"), tirx.Var("m", "int64")
440 x = relax.Var("x", R.Tensor([m, n], "float32"))
441 bb = relax.BlockBuilder()
442 with bb.function(name, (x,)):
443 out = bb.emit(
444 relax.call_dps_packed("extern_func", x, R.Tensor((m, n), dtype="float32"))
445 )
446 bb.emit_func_output(out)
447 return bb.get()[name]
448
449 _check(foo, _expected("foo"))
450 _check(bar, _expected("bar"))

Callers 1

test_symbolic_shapeFunction · 0.70

Calls 6

functionMethod · 0.95
emitMethod · 0.95
emit_func_outputMethod · 0.95
getMethod · 0.95
TensorMethod · 0.80
call_dps_packedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…