-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtest.jl
More file actions
30 lines (25 loc) · 737 Bytes
/
test.jl
File metadata and controls
30 lines (25 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Pkg
Pkg.activate(@__DIR__)
include("../../testutils.jl")
using ChainRulesCore
using DifferentiationInterface, DifferentiationInterfaceTest
using Test
using Zygote: ZygoteRuleConfig
using ExplicitImports
check_no_implicit_imports(DifferentiationInterface)
for backend in [AutoChainRules(ZygoteRuleConfig())]
@test check_available(backend)
@test !check_inplace(backend)
end
test_differentiation(
AutoChainRules(ZygoteRuleConfig()),
default_scenarios();
excluded = [:second_derivative],
logging = LOGGING,
);
test_differentiation(
AutoChainRules(ZygoteRuleConfig()),
default_scenarios(; include_normal = false, include_constantified = true);
excluded = SECOND_ORDER,
logging = LOGGING,
);