(*tensors)
| 344 | |
| 345 | # A simple loop that copies all tensors to cuda |
| 346 | def copy_to_device(*tensors): |
| 347 | result = [] |
| 348 | for tensor in tensors: |
| 349 | result.append(tensor.to("cuda:0")) |
| 350 | return result |
| 351 | |
| 352 | |
| 353 | # A loop that copies all tensors to cuda asynchronously |
nothing calls this directly
no outgoing calls
no test coverage detected