File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ been removed in favour of MLDatasets.jl.
7
7
* ` flatten ` is not exported anymore due to clash with Iterators.flatten.
8
8
* Remove Juno.jl progress bar support as it is now obsolete.
9
9
* ` Dropout ` gained improved compatibility with Int and Complex arrays and is now twice-differentiable.
10
+ * Many utily functions and the ` DataLoader ` are [ now provided by MLUtils.jl] ( https://github.com/FluxML/Flux.jl/pull/1874 ) .
11
+ * The DataLoader is now compatible with generic dataset types implementing ` MLUtils.numobs ` and ` MLUtils.getobs ` .
10
12
11
13
## v0.12.10
12
14
* ` Dropout ` /` AlphaDropout ` now supports [ user-specified RNGs] ( https://github.com/FluxML/Flux.jl/pull/1838 )
Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ using Random
65
65
@test batches[3 ][1 ] == batches[3 ]. x == X[:,5 : 5 ]
66
66
@test batches[3 ][2 ] == batches[3 ]. y == Y[5 : 5 ]
67
67
68
+ # Don't mutate state https://github.com/FluxML/Flux.jl/issues/1227
69
+ d = DataLoader ([1 : 10 ;], shuffle= true )
70
+ cd = collect (zip (d, d))
71
+ # skip the first since it used to be different also before fixing the bug
72
+ @test [cd[i][1 ] for i= 2 : 10 ] != [cd[i][2 ] for i= 2 : 10 ]
73
+
68
74
# test interaction with `train!`
69
75
θ = ones (2 )
70
76
X = zeros (2 , 10 )
You can’t perform that action at this time.
0 commit comments