Skip to content
Discussion options

You must be logged in to vote

What do you mean it does "not splitting deterministically"? This function is part of Pytorch and has nothing to do with Lightning.

From the Pytorch docs:

generator = torch.Generator().manual_seed(42)
random_split(range(10), [3, 7], generator=generator)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mshooter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment