Skip to content

Commit 0840625

Browse files
authored
Merge pull request #2052 from FluxML/bc/restore-private-fns
Restore some private functions
2 parents 39fe9f9 + 6fddaf9 commit 0840625

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/deprecations.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ Base.@deprecate_binding RADAM RAdam
8080
Base.@deprecate_binding OADAM OAdam
8181
Base.@deprecate_binding ADAGrad AdaGrad
8282
Base.@deprecate_binding ADADelta AdaDelta
83+
84+
@deprecate rng_from_array() default_rng_value()

src/utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ function _create_bias(weights::AbstractArray, bias::AbstractArray, dims::Integer
520520
bias
521521
end
522522

523+
# TODO figure out whether we want to document or deprecate this
524+
const create_bias = _create_bias
525+
523526

524527
# Other
525528

0 commit comments

Comments
 (0)