Skip to content
Snippets Groups Projects

Correctly pass tensor to device

Merged Yoann Schneider requested to merge correctly-pass-tensor-to-gpu into main

According to the docs, input_tensor.to(device) doesn't move the tensor to the device but returns a tensor that's on the device.

Fixes GPU predictions

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading