Skip to content

Commit 18f39d8

Browse files
Update DiffEqFlux.jl
1 parent 974818b commit 18f39d8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/DiffEqFlux.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ function neural_ode(model,x,tspan,args...;kwargs...)
5454
error("neural_ode has been deprecated with the change to Zygote. Please see the documentation on the new NeuralODE layer.")
5555
end
5656

57-
# Piracy, should get upstreamed
58-
function Flux.create_bias(weights::AbstractArray{<:DiffEqSensitivity.ReverseDiff.TrackedReal}, bias::AbstractArray{<:DiffEqSensitivity.ReverseDiff.TrackedReal}, dims::Integer...)
59-
size(bias) == dims || throw(DimensionMismatch("expected bias of size $(dims), got size $(size(bias))"))
60-
return bias
61-
end
62-
6357
# ForwardDiff integration
6458

6559
ZygoteRules.@adjoint function ForwardDiff.Dual{T}(x, ẋ::Tuple) where T

0 commit comments

Comments
 (0)