MCPcopy Index your code
hub / github.com/apache/tvm / f

Function f

tests/python/relax/test_ast_printer.py:352–366  ·  view source on GitHub ↗
(
        x: R.Tensor((32, "m"), "float32"),
        y: R.Tensor(("m",), "float32"),
        r: R.Tensor(dtype="int64"),
    )

Source from the content-addressed store, hash-verified

350 # test case from test_parser
351 @R.function(pure=False)
352 def f(
353 x: R.Tensor((32, "m"), "float32"),
354 y: R.Tensor(("m",), "float32"),
355 r: R.Tensor(dtype="int64"),
356 ) -> R.Object:
357 m = T.int64()
358 z: R.Tensor((32, m), "float32") = R.multiply(x, y)
359 w: R.Tensor(ndim=2) = R.multiply(z, z)
360 q: R.Tensor = R.add(w, w)
361 t = R.add(w, z)
362 sh: R.Shape = R.shape_of(t)
363 o: R.Object = R.call_packed(
364 "contrib.tensor_array_stack", x, y, sinfo_args=R.Object(), test_attr=True
365 )
366 return o
367
368 # checking that the call_packed call is turned into a call to an extern func
369 f_str = strip_whitespace(

Callers 13

build_and_runFunction · 0.70
build_and_runFunction · 0.70
build_and_runFunction · 0.70
build_and_runFunction · 0.70
build_and_runFunction · 0.70
build_and_runFunction · 0.70
build_and_runFunction · 0.70
verify_rpcFunction · 0.50
test_dltensor_compatibleFunction · 0.50
check_assignFunction · 0.50
check_expr_sumFunction · 0.50

Calls 5

TensorMethod · 0.80
shape_ofMethod · 0.80
call_packedMethod · 0.80
multiplyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected