From 6fddaf95915116cbe1f519a9f6714baafe05bf4c Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Sun, 28 Aug 2022 12:34:04 -0700 Subject: [PATCH] restore some private functions These were breaking downstream tests on master --- src/deprecations.jl | 2 ++ src/utils.jl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/deprecations.jl b/src/deprecations.jl index 6719bd39e2..8c3bc963a4 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -80,3 +80,5 @@ Base.@deprecate_binding RADAM RAdam Base.@deprecate_binding OADAM OAdam Base.@deprecate_binding ADAGrad AdaGrad Base.@deprecate_binding ADADelta AdaDelta + +@deprecate rng_from_array() default_rng_value() diff --git a/src/utils.jl b/src/utils.jl index 83ae222aa5..581d0b02a7 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -520,6 +520,9 @@ function _create_bias(weights::AbstractArray, bias::AbstractArray, dims::Integer bias end +# TODO figure out whether we want to document or deprecate this +const create_bias = _create_bias + # Other