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

Method main

tests/python/relax/test_op_view.py:661–663  ·  view source on GitHub ↗
(A: R.Tensor([4096], "float32"))

Source from the content-addressed store, hash-verified

659 class Module:
660 @R.function
661 def main(A: R.Tensor([4096], "float32")):
662 B = R.memory.view(A)
663 return B
664
665 built = tvm.compile(Module, target=target)
666 vm = tvm.relax.VirtualMachine(built, device=dev)

Callers

nothing calls this directly

Calls 4

TensorMethod · 0.80
viewMethod · 0.45
shapeMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected