Skip to content

Commit ff512bd

Browse files
format and fix
1 parent 9957287 commit ff512bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/src/examples/tensor_layer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ ẍ = - kx - αx³ - βẋ -γẋ³.
1010
```
1111

1212
We first transform this second order differential equation into a system of first order
13-
differential equations for use in `DiffEqFlux`: We let `ẋ = v` then
13+
differential equations for use in `DiffEqFlux`: We let `ẋ = v` then
14+
1415
```math
1516
ẋ = v \\
1617
v̇ = - kx - αx³ - βv̇ -γv̇³.

test/multiple_shoot_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# Integration return codes `!= :Success` should return infinite loss.
117117
# In this case, we trigger `retcode = :MaxIters` by setting the solver option `maxiters=1`.
118118
loss_fail = multiple_shoot(p_init, ode_data, tsteps, prob_node, loss_function,
119-
Tsit5(), datasize; maxiters = 1, verbose = false)
119+
Tsit5(), datasize; maxiters = 1, verbose = false)[1]
120120
@test loss_fail == Inf
121121

122122
## Test for DomainErrors

0 commit comments

Comments
 (0)