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

Method test_value

tests/transforms/test_mean_ensemble.py:62–64  ·  view source on GitHub ↗
(self, input_param, img, expected_value)

Source from the content-addressed store, hash-verified

60class TestMeanEnsemble(unittest.TestCase):
61 @parameterized.expand(TESTS)
62 def test_value(self, input_param, img, expected_value):
63 result = MeanEnsemble(**input_param)(img)
64 assert_allclose(result, expected_value)
65
66 def test_cuda_value(self):
67 img = torch.stack([torch.ones(2, 2, 2, 2), torch.ones(2, 2, 2, 2) + 2])

Callers

nothing calls this directly

Calls 2

MeanEnsembleClass · 0.90
assert_allcloseFunction · 0.90

Tested by

no test coverage detected