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

Function get_ref

tests/python/relax/test_codegen_tensorrt.py:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77def test_tensorrt_offload():
78 @memoize("relax.tests.test_codegen_tensorrt.conv2d_residual")
79 def get_ref():
80 data_np = np.random.randn(1, 64, 56, 56).astype("float32")
81 weight1_np = np.random.randn(64, 64, 3, 3).astype("float32")
82 weight2_np = np.random.randn(64, 64, 3, 3).astype("float32")
83 inputs = [data_np, weight1_np, weight2_np]
84 ref = build_and_run(Conv2dResidualBlock, inputs, "llvm", legalize=True)
85 return inputs, ref
86
87 inputs, ref = get_ref()
88

Callers 1

test_tensorrt_offloadFunction · 0.70

Calls 2

build_and_runFunction · 0.70
astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…