MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / test_conv2d

Method test_conv2d

python/oneflow/test/modules/test_conv2d.py:1649–1662  ·  view source on GitHub ↗
(test_case)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 4

GenArgListFunction · 0.90
_test_conv2dFunction · 0.85
toMethod · 0.45
deviceMethod · 0.45

Tested by

no test coverage detected