Skip to content

Commit ca8d60a

Browse files
committed
Truncate old comment
1 parent 5d4b0c4 commit ca8d60a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pytensor/gradient.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,7 @@ def account_for(var):
929929
continue
930930

931931
if ipt not in var_to_app_to_idx:
932-
# This object here *must* be ordered, because
933-
# we iterate over its keys when adding up the terms of the
934-
# gradient on ipt. If it is a regular dict, the grad method
935-
# will return something that is analytically correct, but
936-
# whose order of doing additions depends on the memory
937-
# location of the apply nodes.
932+
# This object *must* be ordered for the grad graph to be deterministic
938933
var_to_app_to_idx[ipt] = {}
939934
app_to_idx = var_to_app_to_idx[ipt]
940935
if app not in app_to_idx:

0 commit comments

Comments
 (0)