Skip to content

Commit 5e05de7

Browse files
authored
depend on Optimisers (#1864)
1 parent 0edf602 commit 5e05de7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1313
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1414
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1515
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d"
16+
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
1617
ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
1718
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1819
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
@@ -33,6 +34,7 @@ MLUtils = "0.2"
3334
MacroTools = "0.5"
3435
NNlib = "0.8.2"
3536
NNlibCUDA = "0.2"
37+
Optimisers = "0.2"
3638
ProgressLogging = "0.1"
3739
Reexport = "0.2, 1.0"
3840
SpecialFunctions = "1.8.2, 2.1.2"

src/Flux.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
module Flux
22

3-
# Zero Flux Given
4-
53
using Base: tail
6-
using Statistics, Random, LinearAlgebra, SpecialFunctions
7-
using Zygote, MacroTools, ProgressLogging, Reexport
4+
using LinearAlgebra, Statistics, Random # standard lib
5+
using MacroTools, Reexport, ProgressLogging, SpecialFunctions
86
using MacroTools: @forward
9-
@reexport using NNlib
107

8+
@reexport using NNlib
119
using MLUtils
10+
import Optimisers: trainable # before v0.13, Flux owned this function
1211

12+
using Zygote, ChainRulesCore
1313
using Zygote: Params, @adjoint, gradient, pullback, @nograd
1414
export gradient
15-
using ChainRulesCore
1615

1716
export Chain, Dense, Maxout, SkipConnection, Parallel,
1817
RNN, LSTM, GRU, GRUv3,
@@ -32,7 +31,6 @@ export Descent, ADAM, Momentum, Nesterov, RMSProp,
3231
ADAMW, RADAM, AdaBelief, InvDecay, ExpDecay,
3332
WeightDecay, ClipValue, ClipNorm
3433

35-
3634
using CUDA
3735
const use_cuda = Ref{Union{Nothing,Bool}}(nothing)
3836

0 commit comments

Comments
 (0)