Update stage_4_process.py

This commit is contained in:
David Rotermund 2024-11-17 02:55:56 +01:00 committed by GitHub
parent e53c8e9fdf
commit ac2afc4cb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,7 +498,7 @@ def process_trial(
volume_heartbeat_cpu, _, _ = torch.linalg.svd(
heartbeat_ts.cpu(), full_matrices=False
)
volume_heartbeat = volume_heartbeat_cpu.to(heartbeat_ts.data, copy=True)
volume_heartbeat = volume_heartbeat_cpu.to(heartbeat_ts.device, copy=True)
del volume_heartbeat_cpu
volume_heartbeat = volume_heartbeat[:, 0]