From 348a2fe1537af5a97ad535083c506f522560285e Mon Sep 17 00:00:00 2001 From: Deniz Yuret Date: Fri, 31 Aug 2018 02:24:22 +0300 Subject: [PATCH] Fixed compat with AutoGrad-1.0.1 --- Project.toml | 8 ++++---- src/Knet.jl | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index c0570d6db..c96bc00ef 100644 --- a/Project.toml +++ b/Project.toml @@ -6,20 +6,20 @@ version = "1.0.0" [deps] AutoGrad = "6710c13c-97f1-543f-91c5-74e8f7d95b35" CUDAapi = "3895d2a7-ec45-59b8-82bb-cfc6a382f9b3" +FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" +JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" -JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" -FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" [compat] AutoGrad = "1.0.1" CUDAapi = "0.5.0" -SpecialFunctions = "0.7.0" -JLD2 = "0.1.1" FileIO = "1.0.1" +JLD2 = "0.1.1" +SpecialFunctions = "0.7.0" [extras] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/Knet.jl b/src/Knet.jl index e55a80bde..124258347 100644 --- a/src/Knet.jl +++ b/src/Knet.jl @@ -19,10 +19,11 @@ using AutoGrad: forw, back, Rec, Tape export grad, gradloss, getval, value if isdefined(AutoGrad,:Param); @eval begin using AutoGrad: Value - export Param, differentiate, gradient, pa, df, gr + export Param, differentiate, gradient, @diff end; else; @eval begin const value = getval const Value = Rec + const Param = Rec end; end include("gpu.jl"); export gpu