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 8943dd7 commit 3f17c87Copy full SHA for 3f17c87
src/Algorithm/DDPG.jl
@@ -1,9 +1,11 @@
1
## TODO: Need reconstruct !!!
2
using Flux: glorot_normal, glorot_uniform
3
using StableRNGs
4
-using Flux.Losses
5
using IntervalSets
6
+Base.copyto!(dest::ReinforcementLearning.NeuralNetworkApproximator, src::ReinforcementLearning.NeuralNetworkApproximator) =
7
+ Flux.loadparams!(dest.model, Flux.params(src))
8
+
9
function Base.rsplit( v, l::Int)
10
u = reshape(v,l,length(v)÷l)
11
[u[:,i] for i=1:size(u,2)]
0 commit comments