Skip to content

Commit

Permalink
Take cache mode activations off the GPU (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-apollo authored Mar 11, 2024
1 parent 68a2fc7 commit a3f4003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rib/hook_fns.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _append_to_hooked_list(
element_to_append: Appended to hooked data.
"""
hooked_data.setdefault(hook_name, {}).setdefault(data_key, [])
hooked_data[hook_name][data_key].append(element_to_append)
hooked_data[hook_name][data_key].append(element_to_append.cpu())


InputActType = Union[
Expand Down

0 comments on commit a3f4003

Please sign in to comment.