Braindecode 1.5.0.dev984__py3-none-any.whl → 1.5.0.dev985__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ from .bendr import BENDR
8
8
  from .biot import BIOT
9
9
  from .brainmodule import BrainModule
10
10
  from .cbramod import CBraMod
11
+ from .codebrain import CodeBrain
11
12
  from .contrawr import ContraWR
12
13
  from .ctnet import CTNet
13
14
  from .deep4 import Deep4Net
@@ -72,6 +73,7 @@ __all__ = [
72
73
  "BIOT",
73
74
  "BENDR",
74
75
  "CBraMod",
76
+ "CodeBrain",
75
77
  "ContraWR",
76
78
  "CTNet",
77
79
  "Deep4Net",
@@ -439,7 +439,7 @@ class _BIOTEncoder(nn.Module):
439
439
  self.channel_tokens = nn.Embedding(
440
440
  num_embeddings=n_chans, embedding_dim=emb_size
441
441
  )
442
- self.index = nn.Parameter(torch.LongTensor(range(n_chans)), requires_grad=False)
442
+ self.register_buffer("index", torch.arange(n_chans, dtype=torch.long))
443
443
 
444
444
  def stft(self, sample):
445
445
  """