Skip to content

Commit

Permalink
Andrew's mulmodal stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnWangDataAnalyst committed Jan 17, 2024
1 parent bebbce0 commit ba92903
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions whobpyt/models/EEG/ParamsEEG.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ def __init__(self, Lead_Field):
#############################################

self.LF = Lead_Field # This should be [num_regions, num_channels]

def to(self, device):
# Moves all parameters between CPU and GPU

vars_names = [a for a in dir(self) if not a.startswith('__')]
for var_name in vars_names:
var = getattr(self, var_name)
if (type(var) == par):
var.to(device)

0 comments on commit ba92903

Please sign in to comment.