MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_pad

Method test_pad

tests/transforms/test_border_pad.py:34–36  ·  view source on GitHub ↗
(self, input_param, input_shape, expected_shape)

Source from the content-addressed store, hash-verified

32
33 @parameterized.expand(TESTS)
34 def test_pad(self, input_param, input_shape, expected_shape):
35 modes = ["constant", NumpyPadMode.CONSTANT, PytorchPadMode.CONSTANT]
36 self.pad_test(input_param, input_shape, expected_shape, modes)
37
38 def test_pad_kwargs(self):
39 kwargs = {"spatial_border": 2, "mode": "constant"}

Callers

nothing calls this directly

Calls 1

pad_testMethod · 0.80

Tested by

no test coverage detected