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 9982cbe commit 98c49f1Copy full SHA for 98c49f1
Project.toml
@@ -1,7 +1,7 @@
1
name = "SliceMap"
2
uuid = "82cb661a-3f19-5665-9e27-df437c7e54c8"
3
authors = ["Michael Abbott"]
4
-version = "0.1.0"
+version = "0.1.1"
5
6
[deps]
7
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
test/runtests.jl
@@ -140,12 +140,16 @@ end
140
@test res ≈ slicemap(fun, ten, dims=3)
141
142
grad = ForwardDiff.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)
143
- @test grad ≈ Zygote.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)[1]
+ @test_broken grad ≈ Zygote.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)[1]
144
145
jthree(f,m) = Align(map(f,
146
Slices(m, False(), False(), True(), False())
147
), False(), False(), True(), False())
148
@test res ≈ jthree(fun, ten)
149
@test grad ≈ Zygote.gradient(m -> sum(sin, jthree(fun, m)), ten)[1]
150
151
+ j3(f,m) = Align(map(f, Slices(m, 3)), 3)
152
+ @test res ≈ j3(fun, ten)
153
+ @test grad ≈ Zygote.gradient(m -> sum(sin, j3(fun, m)), ten)[1]
154
+
155
end
0 commit comments