8000
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 9817ead commit bcaf117Copy full SHA for bcaf117
torch/utils/checkpoint.py
@@ -1108,7 +1108,7 @@ def pack_hook(x):
1108
return holder
1109
1110
def unpack_hook(holder):
1111
- gid = torch._C._current_graph_task_id()
+ gid = 0 # torch._C._current_graph_task_id()
1112
if gid == -1:
1113
# generate a temporary id if we trigger unpack outside of a backward call
1114
gid = int(uuid.uuid4())
@@ -1137,7 +1137,7 @@ def unpack_hook(holder):
1137
)
1138
_internal_assert(holder.handles[gid] in frame.recomputed[gid])
1139
ret = frame.recomputed[gid][holder.handles[gid]]
1140
- holder.handles[gid] = None
+ # holder.handles[gid] = None
1141
return ret
1142
1143
if frame.unpack_error_cb is not None:
0 commit comments