Skip to content

Commit d2876cf

Browse files
committed
Revert "Explicit broadcast"
This reverts commit b7d1da2.
1 parent b7d1da2 commit d2876cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rule_definition_tools.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ function propagation_expr(Δs, ∂s)
211211
∂s = map(esc, ∂s)
212212
n∂s = length(∂s)
213213

214-
∂_mul_Δs = ntuple(i->:($(∂s[i]) .* $(Δs[i])), n∂s)
214+
∂_mul_Δs = ntuple(i->:($(∂s[i]) * $(Δs[i])), n∂s)
215215

216-
# avoiding the extra `.+` operation, it is potentially
216+
# avoiding the extra `+` operation, it is potentially
217217
# expensive for vector mode AD
218218
sumed_∂_mul_Δs = if n∂s > 1
219-
:(.+($(∂_mul_Δs...)))
219+
:(@. +($(∂_mul_Δs...)))
220220
else
221221
∂_mul_Δs[1]
222222
end

0 commit comments

Comments
 (0)