Skip to content

Commit 4716f27

Browse files
authored
Merge pull request #69 from hmyuuu/fix-deps
Fix deps
2 parents d9ddf61 + f905a27 commit 4716f27

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Project.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2626

2727
[compat]
2828
BoundaryValueDiffEq = "2"
29-
Convex = "0.14, 0.15"
29+
Convex = "0.15"
3030
Distributions = "0.25"
31-
Flux = "0.12, 0.14"
32-
Interpolations = "0.13, 0.15"
33-
IntervalSets = "0.5, 0.7"
31+
Flux = "0.12, 0.13"
32+
Interpolations = "0.13"
33+
IntervalSets = "0.5"
3434
QuadGK = "2"
3535
ReinforcementLearning = "0.10"
3636
SCS = "1"

src/Algorithm/DDPG.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## TODO: Need reconstruct !!!
22
using Flux: glorot_normal, glorot_uniform
33
using StableRNGs
4-
using Flux.Losses
54
using IntervalSets
65

6+
Base.copyto!(dest::ReinforcementLearning.NeuralNetworkApproximator, src::ReinforcementLearning.NeuralNetworkApproximator) =
7+
Flux.loadparams!(dest.model, Flux.params(src))
8+
79
function Base.rsplit( v, l::Int)
810
u = reshape(v,l,length(v)÷l)
911
[u[:,i] for i=1:size(u,2)]

0 commit comments

Comments
 (0)