Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels committed Dec 8, 2016
1 parent 20cd975 commit b10712b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derivatives/elementwise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ function broadcast_deriv_increment!(input::AbstractArray, output, partials::Abst
max_partials_index = max_leftover_index(partials, output)
output_deriv = deriv(output)
for i in CartesianRange(size(output))
increment_deriv!(input_deriv[min(max_input_index, i)], output_deriv[i] * partials[min(max_partials_index, i)])
increment_deriv!(input[min(max_input_index, i)], output_deriv[i] * partials[min(max_partials_index, i)])
end
return nothing
end
Expand Down

0 comments on commit b10712b

Please sign in to comment.