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

Method main

tests/python/relax/test_op_size.py:30–31  ·  view source on GitHub ↗
(x: R.Tensor((2, 3), "float32"))

Source from the content-addressed store, hash-verified

28 class Module:
29 @R.function
30 def main(x: R.Tensor((2, 3), "float32")) -> R.Tensor((), "int64"):
31 return R.size(x)
32
33 x_np = np.random.rand(2, 3).astype("float32")
34 x = tvm.runtime.tensor(x_np)

Callers 1

test_op_size.pyFile · 0.45

Calls 2

TensorMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected