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

Class _RandomDataset

tests/data/test_dataloader.py:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61class _RandomDataset(torch.utils.data.Dataset, Randomizable):
62 def __getitem__(self, index):
63 return self.R.randint(0, 1000, (1,))
64
65 def __len__(self):
66 return 8
67
68
69class TestLoaderRandom(unittest.TestCase):

Callers 2

test_randomizeMethod · 0.85
test_zipdatasetMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_randomizeMethod · 0.68
test_zipdatasetMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…