You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to_device: Handle nested lists/tuples recursively
The previous implementation of `to_device` would break when a
user decided to return a list of tensors in `forward`.
This patch applies `to_device` recursively and adds support
for lists in addition to tuples.
Copy file name to clipboardExpand all lines: CHANGES.md
+1
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
- Raise `FutureWarning` when using `CyclicLR` scheduler, because the default behavior has changed from taking a step every batch to taking a step every epoch. (#626)
22
22
- Set train/validation on criterion if it's a PyTorch module (#621)
23
23
- Don't pass `y=None` to `NeuralNet.train_split` to enable the direct use of split functions without positional `y` in their signatures. This is useful when working with unsupervised data (#605).
24
+
-`to_numpy` is now able to unpack dicts and lists/tuples (#657, #658)
0 commit comments