Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit d62a3b6

Browse files
chore: apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a971dcf commit d62a3b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/deeponet_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@test setup.out_size == size(pred)
5151

5252
__f = (u, y, ps) -> sum(abs2, first(deeponet((u, y), ps, st)))
53-
test_gradients(__f, u, y, ps; atol=1f-3, rtol=1f-3)
53+
test_gradients(__f, u, y, ps; atol=1.0f-3, rtol=1.0f-3)
5454
end
5555

5656
@testset "Embedding layer mismatch" begin
@@ -64,7 +64,7 @@
6464
@test_throws ArgumentError deeponet((u, y), ps, st)
6565

6666
__f = (u, y, ps) -> sum(abs2, first(deeponet((u, y), ps, st)))
67-
test_gradients(__f, u, y, ps; atol=1f-3, rtol=1f-3)
67+
test_gradients(__f, u, y, ps; atol=1.0f-3, rtol=1.0f-3)
6868
end
6969
end
7070
end

test/fno_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
end broken=broken
3030

3131
__f = (x, ps) -> sum(abs2, first(fno(x, ps, st)))
32-
test_gradients(__f, x, ps; atol=1f-3, rtol=1f-3)
32+
test_gradients(__f, x, ps; atol=1.0f-3, rtol=1.0f-3)
3333
end
3434
end
3535
end

test/layers_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
end broken=broken
3939

4040
__f = (x, ps) -> sum(abs2, first(m(x, ps, st)))
41-
test_gradients(__f, x, ps; atol=1f-3, rtol=1f-3)
41+
test_gradients(__f, x, ps; atol=1.0f-3, rtol=1.0f-3)
4242
end
4343
end
4444
end

0 commit comments

Comments
 (0)