Skip to content

Commit 0ad5070

Browse files
committed
little type piracy
1 parent 9b3b7dc commit 0ad5070

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ReliabilityOptimization.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,8 @@ function ChainRulesCore.rrule(
111111
StaticArraysCore.SVector{3}(x1, x2, x3), Δ -> (NoTangent(), Δ[1], Δ[2], Δ[3])
112112
end
113113

114+
function ChainRulesCore._eltype_projectto(::Type{T}) where {T<:AbstractVector{<:Number}}
115+
return ChainRulesCore.ProjectTo(zero(T))
116+
end
117+
114118
end

0 commit comments

Comments
 (0)