Skip to content

Commit

Permalink
Fixed compat with AutoGrad-1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyuret committed Aug 30, 2018
1 parent 53b1326 commit 348a2fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/Knet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 348a2fe

Please sign in to comment.