Skip to content

Commit 8efacbd

Browse files
1 parent a461b32 commit 8efacbd

88 files changed

Lines changed: 627 additions & 581 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.

dev/_downloads/0f2bf063e08b7d05b80e0004fcbbb6f9/benchmark_lazy_eager_loading.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"# Authors: Hubert Banville <hubert.jbanville@gmail.com>\n#\n# License: BSD (3-clause)\n\nimport time\nfrom itertools import product\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport torch\nfrom torch import nn, optim\nfrom torch.utils.data import DataLoader\n\nfrom braindecode.datasets import TUHAbnormal\nfrom braindecode.models import Deep4Net, ShallowFBCSPNet\nfrom braindecode.preprocessing import create_fixed_length_windows\n\nmne.set_log_level(\"WARNING\") # avoid messages every time a window is extracted"
18+
"# Authors: Hubert Banville <hubert.jbanville@gmail.com>\n#\n# License: BSD (3-clause)\n\nimport time\nfrom itertools import product\n\nimport mne\nimport numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport torch\nfrom torch import nn, optim\nfrom torch.utils.data import DataLoader\n\nfrom braindecode.datasets import TUHAbnormal\nfrom braindecode.models import Deep4Net, ShallowFBCSPNet\nfrom braindecode.preprocessing import create_fixed_length_windows\nfrom braindecode.util import set_random_seeds\n\nmne.set_log_level(\"WARNING\") # avoid messages every time a window is extracted"
1919
]
2020
},
2121
{
@@ -33,7 +33,7 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"N_JOBS = 8\ntorch.backends.cudnn.benchmark = True # Enables automatic algorithm optimizations\ntorch.set_num_threads(N_JOBS) # Sets the available number of threads"
36+
"N_JOBS = 8\ntorch.backends.cudnn.benchmark = True # Enables automatic algorithm optimizations\ntorch.set_num_threads(N_JOBS) # Sets the available number of threads\ncuda = torch.cuda.is_available()\nseed = 20240205\nset_random_seeds(seed=seed, cuda=cuda)"
3737
]
3838
},
3939
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)