Skip to content

Commit 3d2c066

Browse files
committed
remove all type piracy
1 parent 0ad5070 commit 3d2c066

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/ReliabilityOptimization.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,4 @@ function (f::RandomFunction)(x)
101101
return MvNormal(muf, covf)
102102
end
103103

104-
# necessary type piracy FiniteDifferences._estimate_magnitudes uses this constructor which Zygote struggles to differentiate on its own
105-
function ChainRulesCore.rrule(
106-
::typeof(StaticArraysCore.SVector{3}),
107-
x1::T,
108-
x2::T,
109-
x3::T,
110-
) where {T}
111-
StaticArraysCore.SVector{3}(x1, x2, x3), Δ -> (NoTangent(), Δ[1], Δ[2], Δ[3])
112-
end
113-
114-
function ChainRulesCore._eltype_projectto(::Type{T}) where {T<:AbstractVector{<:Number}}
115-
return ChainRulesCore.ProjectTo(zero(T))
116-
end
117-
118104
end

0 commit comments

Comments
 (0)