(
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"),
)
| 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 |
nothing calls this directly
no test coverage detected