(test_case)
| 1647 | return y |
| 1648 | |
| 1649 | def test_conv2d(test_case): |
| 1650 | arg_dict = OrderedDict() |
| 1651 | arg_dict["device"] = ["cuda", "cpu"] |
| 1652 | for arg in GenArgList(arg_dict): |
| 1653 | device = arg[0] |
| 1654 | conv = flow.nn.Conv2d(1, 3, (3, 3), bias=False).to(flow.device(device)) |
| 1655 | _test_conv2d( |
| 1656 | test_case, |
| 1657 | conv, |
| 1658 | test_conv2d_data, |
| 1659 | test_conv2d_weight, |
| 1660 | test_conv2d_output, |
| 1661 | device=device, |
| 1662 | ) |
| 1663 | |
| 1664 | def test_conv2d_backward(test_case): |
| 1665 | arg_dict = OrderedDict() |
nothing calls this directly
no test coverage detected