Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

torch.utils.data.random_split(dataset, lengths)

>>> random_split(range(10), [3, 7], generator=torch.Generator().manual_seed(42))
Source by pytorch.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+3 =