(src: Tensor, tgt: Tensor, *, auto_move_device = False)
| 18 | return next(m.parameters()).device |
| 19 | |
| 20 | def inplace_copy(src: Tensor, tgt: Tensor, *, auto_move_device = False): |
| 21 | if auto_move_device: |
| 22 | tgt = tgt.to(src.device) |
| 23 | |
| 24 | src.copy_(tgt) |
| 25 | |
| 26 | def inplace_lerp(src: Tensor, tgt: Tensor, weight, *, auto_move_device = False): |
| 27 | if auto_move_device: |
nothing calls this directly
no outgoing calls
no test coverage detected