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

Method main

tests/python/relax/test_frontend_from_fx.py:69–91  ·  view source on GitHub ↗
(
            input_1: R.Tensor((1, 3, 10), dtype="float32"),
            w1: R.Tensor((6, 3, 7), dtype="float32"),
            w2: R.Tensor((6,), dtype="float32"),
        )

Source from the content-addressed store, hash-verified

67 class expected1:
68 @R.function
69 def main(
70 input_1: R.Tensor((1, 3, 10), dtype="float32"),
71 w1: R.Tensor((6, 3, 7), dtype="float32"),
72 w2: R.Tensor((6,), dtype="float32"),
73 ) -> R.Tensor((1, 6, 4), dtype="float32"):
74 # block 0
75 with R.dataflow():
76 lv1: R.Tensor((1, 6, 4), dtype="float32") = R.nn.conv1d(
77 input_1,
78 w1,
79 strides=[1],
80 padding=[0, 0],
81 dilation=[1],
82 data_layout="NCW",
83 kernel_layout="OIW",
84 out_layout="NCW",
85 out_dtype="float32",
86 )
87 lv2: R.Tensor((1, 6, 1), dtype="float32") = R.reshape(w2, [1, 6, 1])
88 lv3: R.Tensor((1, 6, 4), dtype="float32") = R.add(lv1, lv2)
89 gv: R.Tensor((1, 6, 4), dtype="float32") = lv3
90 R.output(gv)
91 return gv
92
93 class Conv1D2(Module):
94 def __init__(self):

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
conv1dMethod · 0.80
outputMethod · 0.80
conv1d_transposeMethod · 0.80
conv2d_transposeMethod · 0.80
avg_pool2dMethod · 0.80
adaptive_avg_pool2dMethod · 0.80
batch_normMethod · 0.80
log_softmaxMethod · 0.80
nll_lossMethod · 0.80
group_normMethod · 0.80

Tested by

no test coverage detected