Skip to content

Commit 60b2ce3

Browse files
committed
to gradient_choices
1 parent 23ee010 commit 60b2ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/static_ir/backprop.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function back_codegen!(stmts, ir, selected_calls, fwd_marked, back_marked,
276276
if node in fwd_marked
277277
input_grads = gensym("call_input_grads")
278278
value_choices = value_choices_var(node)
279-
choice_gradient = gradient_choices_var(node)
279+
gradient_choices = gradient_choices_var(node)
280280
subtrace_fieldname = get_subtrace_fieldname(node)
281281
call_selection = gensym("call_selection")
282282
if node in selected_calls
@@ -285,7 +285,7 @@ function back_codegen!(stmts, ir, selected_calls, fwd_marked, back_marked,
285285
push!(stmts, :($call_selection = EmptySelection()))
286286
end
287287
retval_grad = node in back_marked ? gradient_var(node) : :(nothing)
288-
push!(stmts, :(($input_grads, $value_choices, $choice_gradient) = choice_gradients(
288+
push!(stmts, :(($input_grads, $value_choices, $gradient_choices) = choice_gradients(
289289
trace.$subtrace_fieldname, $call_selection, $retval_grad)))
290290
end
291291

0 commit comments

Comments
 (0)