We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0edf602 commit 5e05de7Copy full SHA for 5e05de7
Project.toml
@@ -13,6 +13,7 @@ MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
13
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
14
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
15
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d"
16
+Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
17
ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
18
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
19
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
@@ -33,6 +34,7 @@ MLUtils = "0.2"
33
34
MacroTools = "0.5"
35
NNlib = "0.8.2"
36
NNlibCUDA = "0.2"
37
+Optimisers = "0.2"
38
ProgressLogging = "0.1"
39
Reexport = "0.2, 1.0"
40
SpecialFunctions = "1.8.2, 2.1.2"
src/Flux.jl
@@ -1,18 +1,17 @@
1
module Flux
2
3
-# Zero Flux Given
4
-
5
using Base: tail
6
-using Statistics, Random, LinearAlgebra, SpecialFunctions
7
-using Zygote, MacroTools, ProgressLogging, Reexport
+using LinearAlgebra, Statistics, Random # standard lib
+using MacroTools, Reexport, ProgressLogging, SpecialFunctions
8
using MacroTools: @forward
9
-@reexport using NNlib
10
+@reexport using NNlib
11
using MLUtils
+import Optimisers: trainable # before v0.13, Flux owned this function
12
+using Zygote, ChainRulesCore
using Zygote: Params, @adjoint, gradient, pullback, @nograd
export gradient
-using ChainRulesCore
export Chain, Dense, Maxout, SkipConnection, Parallel,
RNN, LSTM, GRU, GRUv3,
@@ -32,7 +31,6 @@ export Descent, ADAM, Momentum, Nesterov, RMSProp,
32
31
ADAMW, RADAM, AdaBelief, InvDecay, ExpDecay,
WeightDecay, ClipValue, ClipNorm
using CUDA
const use_cuda = Ref{Union{Nothing,Bool}}(nothing)
0 commit comments