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

Method main

tests/python/relax/test_frontend_from_exported_program.py:1855–1883  ·  view source on GitHub ↗
(
            input_1: R.Tensor((1, 3, 10, 10), dtype="float32"),
            w1: R.Tensor((3,), dtype="float32"),
            w2: R.Tensor((3,), dtype="float32"),
            w3: R.Tensor((3,), dtype="float32"),
            w4: R.Tensor((3,), dtype="float32"),
        )

Source from the content-addressed store, hash-verified

1853 class expected2:
1854 @R.function
1855 def main(
1856 input_1: R.Tensor((1, 3, 10, 10), dtype="float32"),
1857 w1: R.Tensor((3,), dtype="float32"),
1858 w2: R.Tensor((3,), dtype="float32"),
1859 w3: R.Tensor((3,), dtype="float32"),
1860 w4: R.Tensor((3,), dtype="float32"),
1861 ) -> R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")):
1862 with R.dataflow():
1863 lv: R.Tuple(
1864 R.Tensor((1, 3, 10, 10), dtype="float32"),
1865 R.Tensor((3,), dtype="float32"),
1866 R.Tensor((3,), dtype="float32"),
1867 ) = R.nn.batch_norm(
1868 input_1,
1869 w1,
1870 w2,
1871 w3,
1872 w4,
1873 axis=1,
1874 epsilon=0.001,
1875 center=True,
1876 scale=True,
1877 momentum=0.01,
1878 training=False,
1879 )
1880 lv1: R.Tensor((1, 3, 10, 10), dtype="float32") = lv[0]
1881 gv: R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")) = (lv1,)
1882 R.output(gv)
1883 return gv
1884
1885 example_args = (torch.randn(1, 3, 10, 10, dtype=torch.float32),)
1886

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
batch_normMethod · 0.80
outputMethod · 0.80
avg_pool2dMethod · 0.80
squeezeMethod · 0.80
conv1d_transposeMethod · 0.80
conv2d_transposeMethod · 0.80
conv1dMethod · 0.80
matmulMethod · 0.45
multiplyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected