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 1e49cc4 commit c574eb4Copy full SHA for c574eb4
lerobot/scripts/eval.py
@@ -151,7 +151,9 @@ def rollout(
151
if return_observations:
152
all_observations.append(deepcopy(observation))
153
154
- observation = {key: observation[key].to(device, non_blocking=True) for key in observation}
+ observation = {
155
+ key: observation[key].to(device, non_blocking=device.type == "cuda") for key in observation
156
+ }
157
158
with torch.inference_mode():
159
action = policy.select_action(observation)
0 commit comments