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

Method foo

tests/python/relax/test_transform.py:310–314  ·  view source on GitHub ↗
(x: R.Tensor((2, 3), "int32"))

Source from the content-addressed store, hash-verified

308
309 @R.function
310 def foo(x: R.Tensor((2, 3), "int32")) -> R.Tensor((2, 3), "int32"):
311 R.func_attr({"relax.force_pure": True})
312 _ = Expected.zeros(x)
313 gv0 = x
314 return gv0
315
316 new_mod = relax.transform.CallTIRRewrite()(Input)
317 tvm.ir.assert_structural_equal(Expected["foo"], new_mod["foo"], map_free_vars=True)

Callers

nothing calls this directly

Calls 5

TensorMethod · 0.80
zerosMethod · 0.45
copyMethod · 0.45
shapeMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected