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

Method main

tests/python/relax/test_codegen_tensorrt.py:143–147  ·  view source on GitHub ↗
(data: R.Tensor((2, 8, 16), "float32"), weight: R.Tensor((4, 8, 3), "float32"))

Source from the content-addressed store, hash-verified

141 class Conv1d:
142 @R.function
143 def main(data: R.Tensor((2, 8, 16), "float32"), weight: R.Tensor((4, 8, 3), "float32")):
144 with R.dataflow():
145 out = relax.op.nn.conv1d(data, weight, padding=1)
146 R.output(out)
147 return out
148
149 data = np.random.randn(2, 8, 16).astype("float32")
150 weight = np.random.randn(4, 8, 3).astype("float32")

Callers

nothing calls this directly

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
conv1dMethod · 0.80
outputMethod · 0.80

Tested by

no test coverage detected