Skip to content

Commit 5cf7d2f

Browse files
committed
conv second derivative works now
1 parent deea76a commit 5cf7d2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ArrayInterface = "3.1, 4"
2626
CUDA = "3"
2727
Functors = "0.2.1"
2828
MacroTools = "0.5"
29-
NNlib = "0.8"
29+
NNlib = "0.8.2"
3030
NNlibCUDA = "0.2"
3131
ProgressLogging = "0.1"
3232
Reexport = "0.2, 1.0"

test/layers/basic.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ import Flux: activations
241241
Parallel(f_cnt, sin)(1)
242242
@test CNT[] == 3
243243
end
244-
244+
245245
# Ref https://github.com/FluxML/Flux.jl/issues/1673
246246
@testset "Input domain" begin
247247
struct Input
@@ -278,7 +278,7 @@ import Flux: activations
278278
vocab_size, embed_size = 10, 4
279279
m = Flux.Embedding(vocab_size, embed_size)
280280
@test size(m.weight) == (embed_size, vocab_size)
281-
281+
282282
x = rand(1:vocab_size, 3)
283283
y = m(x)
284284
@test y isa Matrix{Float32}
@@ -315,7 +315,7 @@ end
315315
# https://github.com/FluxML/NNlib.jl/issues/362
316316
m3 = Chain(Conv((3,), 2 => 3, relu), Dense(2,2))
317317
x3 = cat(Float32[1 2; 3 4; 5 6; 7 8]; dims=3)
318-
@test_broken Zygote.hessian_dual(summ3, x3) Zygote.hessian_reverse(summ3, x3)
318+
@test Zygote.hessian_dual(summ3, x3) Zygote.hessian_reverse(summ3, x3)
319319
end
320320

321321
@testset "gradients of Chain{Vector}" begin

0 commit comments

Comments
 (0)