Skip to content
Discussion options

You must be logged in to vote

I think your example crashes because split creates a view, and this view is corrupted since multiple processes are trying to access it.

train_idx = data.train_idx.split(data.train_idx.size(0))[0]
train_idx = train_idx.clone()

fixes this for me.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@alexbarev
Comment options

@rusty1s
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alexbarev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants