Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 2f6c1e2

Browse files
authored
updated patch.jl, for ignore function. (#127)
1 parent 8069331 commit 2f6c1e2

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/algorithms/algorithms.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Zygote: ignore
2+
13
include("dqns/dqns.jl")
24
include("policy_gradient/policy_gradient.jl")
35
include("searching/searching.jl")

src/patch.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# watch https://github.com/FluxML/Zygote.jl/pull/623
2-
3-
using Zygote
4-
5-
ignore(f) = f()
6-
Zygote.@adjoint ignore(f) = ignore(f), _ -> nothing
7-
81
using ReinforcementLearningCore
92

103
(app::NeuralNetworkApproximator)(args...; kwargs...) = app.model(args...; kwargs...)

0 commit comments

Comments
 (0)