Skip to content

Commit da689bf

Browse files
committed
Update memory.md
1 parent 3f64bc5 commit da689bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docfx/articles/memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class MyDataset : torch.utils.data.Dataset
395395
}
396396
```
397397

398-
Also, if you want a "`Lazy`" collate function, do not directly save the tensors that are passed in. And `DetachFromDisposeScope` does not work in this case because they have been moved to another list. Instead, you could create aliases for them.
398+
Also, if you want a "`Lazy`" collate function, do not directly save the tensors that are passed in. And `DetachFromDisposeScope` does not work in this case because they are kept in another list instead of dispose scopes, due to some multithreading issues. Instead, you could create aliases for them.
399399

400400
## Links and resources
401401

0 commit comments

Comments
 (0)