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

Method get_arr

tests/padders.py:55–56  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

53class PadTest(unittest.TestCase):
54 @staticmethod
55 def get_arr(shape):
56 return np.random.randint(100, size=shape).astype(float)
57
58 def pad_test(self, input_param, input_shape, expected_shape, modes=None):
59 # loop over each mode

Callers 3

pad_testMethod · 0.95
pad_test_pending_opsMethod · 0.95
pad_test_combine_opsMethod · 0.95

Calls 1

astypeMethod · 0.80

Tested by

no test coverage detected