Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-arya committed Apr 6, 2023
1 parent c8ea9a4 commit 0618ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backends/smoothed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ StochasticAD.create_Δs(::SmoothedFIsBackend, V) = SmoothedFIs{V}(0.0)
function (::Type{<:SmoothedFIs{V}})(Δs::SmoothedFIs) where {V}
SmoothedFIs{V}(Δs.δ)
end
(::Type{SmoothedFIs{V}})(Δs::SmoothedFIs) where {V} = SmoothedFIs{V}(Δs.δ)

### Getting information about perturbations

Expand Down
2 changes: 1 addition & 1 deletion src/general_rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function Base.getindex(C::AbstractArray, st::StochasticTriple{T, V, FIs}) where
return scale * δ
end

Δs = StochasticAD.map_Δs(do_map, st.Δs; deriv, out_rep = val)
Δs = StochasticAD.map_Δs(do_map, st.Δs; deriv, out_rep = value(val))
if val isa StochasticTriple
Δs = combine((Δs, val.Δs))
end
Expand Down

0 comments on commit 0618ec6

Please sign in to comment.