Skip to content

Commit bc89f31

Browse files
authored
Remove Flux.Data module (#2126)
* remove Flux.Data module * don't export Data by accident
1 parent a50b18c commit bc89f31

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/Flux.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ include("loading.jl")
6161
include("outputsize.jl")
6262
export @autosize
6363

64-
include("data/Data.jl")
65-
using .Data
66-
67-
6864
include("losses/Losses.jl")
6965
using .Losses # TODO: stop importing Losses in Flux's namespace in v0.12
7066

src/data/Data.jl

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/deprecations.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ Base.@deprecate_binding OADAM OAdam
8181
Base.@deprecate_binding ADAGrad AdaGrad
8282
Base.@deprecate_binding ADADelta AdaDelta
8383

84+
# Remove sub-module Data, while making sure Flux.Data.DataLoader keeps working
85+
Base.@deprecate_binding Data Flux false "Sub-module Flux.Data has been removed. The only thing it contained may be accessed as Flux.DataLoader"
86+
8487
@deprecate rng_from_array() default_rng_value()
8588

8689
#=

0 commit comments

Comments
 (0)