We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9ba4e commit 6c97c6dCopy full SHA for 6c97c6d
thunder/core/rematerialization.py
@@ -695,7 +695,7 @@ def add_to_swapmap(p):
695
if bsym.sym.id == PrimIDs.UNPACK_SEQUENCE:
696
flattened_args = tree_flatten(bw_trace.args[1])[0]
697
proxy_names = {y.name for y in flattened_args if isinstance(y, ProxyInterface)}
698
- if all(not isinstance(out, CollectionProxy) and out.name not in proxy_names for out in bsym.flat_outs):
+ if all(not isinstance(out, CollectionProxy) and out.name not in proxy_names for out in bsym.flat_outs if out is not None):
699
old_saved_for_backward_bw += bsym.flat_outs
700
assert len(old_saved_for_backward_fw) == len(old_saved_for_backward_bw)
701
new_required_for_bakward_fw_to_bw_map = {
0 commit comments