You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PrioritizedSliceSampler.sample() , preceding_stop_idx needs to be moved to the CPU before executing self._sum_tree[preceding_stop_idx] = 0.0. If preceding_stop_idx is on the GPU, the program results in a segmentation fault.
Describe the bug
This issue comes from the original issue #2205.
In
PrioritizedSliceSampler.sample()
,preceding_stop_idx
needs to be moved to the CPU before executingself._sum_tree[preceding_stop_idx] = 0.0
. Ifpreceding_stop_idx
is on the GPU, the program results in a segmentation fault.To Reproduce
The code below will cause segmentation fault.
Checklist
The text was updated successfully, but these errors were encountered: