Skip to content

Commit 1e250ac

Browse files
committed
Update torch dependency in tests
1 parent 04d9437 commit 1e250ac

3 files changed

Lines changed: 22 additions & 32 deletions

File tree

.github/workflows/test_codebase.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
matrix:
2929
os: [ubuntu-latest]
3030
python-version: ["3.10", "3.11"]
31-
torch-version: [2.0.1]
32-
include:
33-
- torch-version: 2.0.1
31+
torch-version: ["2.3"]
3432

3533
steps:
3634
- uses: actions/checkout@v3

.github/workflows/test_tutorials.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
matrix:
3333
os: [ubuntu-latest]
3434
python-version: ["3.10", "3.11"]
35-
torch-version: [2.0.1]
36-
include:
37-
- torch-version: 2.0.1
35+
torch-version: ["2.3"]
3836
test-group: [1, 2, 3, 4]
3937

4038
steps:
@@ -68,9 +66,7 @@ jobs:
6866
matrix:
6967
os: [ubuntu-latest]
7068
python-version: ["3.10", "3.11"]
71-
torch-version: [2.0.1]
72-
include:
73-
- torch-version: 2.0.1
69+
torch-version: ["2.3"]
7470
test-group: [1, 2, 3]
7571

7672
steps:
@@ -104,9 +100,7 @@ jobs:
104100
matrix:
105101
os: [ubuntu-latest]
106102
python-version: ["3.10", "3.11"]
107-
torch-version: [2.0.1]
108-
include:
109-
- torch-version: 2.0.1
103+
torch-version: ["2.3"]
110104

111105
steps:
112106
- uses: actions/checkout@v3
@@ -139,9 +133,7 @@ jobs:
139133
matrix:
140134
os: [ubuntu-latest]
141135
python-version: ["3.10", "3.11"]
142-
torch-version: [2.0.1]
143-
include:
144-
- torch-version: 2.0.1
136+
torch-version: ["2.3"]
145137

146138
steps:
147139
- uses: actions/checkout@v3

tutorials/combinatorial/hmc_train.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
},
124124
{
125125
"cell_type": "code",
126-
"execution_count": 1,
126+
"execution_count": null,
127127
"metadata": {
128128
"ExecuteTime": {
129129
"end_time": "2023-08-24T06:49:28.758850145Z",
@@ -149,7 +149,7 @@
149149
},
150150
{
151151
"cell_type": "code",
152-
"execution_count": 2,
152+
"execution_count": null,
153153
"metadata": {},
154154
"outputs": [
155155
{
@@ -178,7 +178,7 @@
178178
},
179179
{
180180
"cell_type": "code",
181-
"execution_count": 3,
181+
"execution_count": null,
182182
"metadata": {
183183
"ExecuteTime": {
184184
"end_time": "2023-08-24T06:49:28.810114967Z",
@@ -237,16 +237,16 @@
237237
" b2 = []\n",
238238
"\n",
239239
" for cc in self.complexes:\n",
240-
" a0.append(torch.from_numpy(cc.adjacency_matrix(0, 1).todense()).to_sparse())\n",
241-
" a1.append(torch.from_numpy(cc.adjacency_matrix(1, 2).todense()).to_sparse())\n",
240+
" a0.append(torch.from_numpy(cc.adjacency_matrix(0, 1).todense()))\n",
241+
" a1.append(torch.from_numpy(cc.adjacency_matrix(1, 2).todense()))\n",
242242
"\n",
243243
" B = cc.incidence_matrix(rank=1, to_rank=2)\n",
244244
" A = B.T @ B\n",
245245
" A.setdiag(0)\n",
246-
" coa2.append(torch.from_numpy(A.todense()).to_sparse())\n",
246+
" coa2.append(torch.from_numpy(A.todense()))\n",
247247
"\n",
248-
" b1.append(torch.from_numpy(cc.incidence_matrix(0, 1).todense()).to_sparse())\n",
249-
" b2.append(torch.from_numpy(cc.incidence_matrix(1, 2).todense()).to_sparse())\n",
248+
" b1.append(torch.from_numpy(cc.incidence_matrix(0, 1).todense()))\n",
249+
" b2.append(torch.from_numpy(cc.incidence_matrix(1, 2).todense()))\n",
250250
"\n",
251251
" return a0, a1, coa2, b1, b2\n",
252252
"\n",
@@ -315,7 +315,7 @@
315315
},
316316
{
317317
"cell_type": "code",
318-
"execution_count": 4,
318+
"execution_count": null,
319319
"metadata": {
320320
"ExecuteTime": {
321321
"end_time": "2023-08-24T06:49:29.818662234Z",
@@ -350,7 +350,7 @@
350350
},
351351
{
352352
"cell_type": "code",
353-
"execution_count": 5,
353+
"execution_count": null,
354354
"metadata": {
355355
"ExecuteTime": {
356356
"end_time": "2023-08-24T06:50:47.902394227Z",
@@ -372,7 +372,7 @@
372372
},
373373
{
374374
"cell_type": "code",
375-
"execution_count": 6,
375+
"execution_count": null,
376376
"metadata": {
377377
"ExecuteTime": {
378378
"end_time": "2023-08-24T06:55:26.795250682Z",
@@ -422,7 +422,7 @@
422422
},
423423
{
424424
"cell_type": "code",
425-
"execution_count": 7,
425+
"execution_count": null,
426426
"metadata": {
427427
"ExecuteTime": {
428428
"end_time": "2023-08-24T06:55:26.814069014Z",
@@ -614,7 +614,7 @@
614614
},
615615
{
616616
"cell_type": "code",
617-
"execution_count": 8,
617+
"execution_count": null,
618618
"metadata": {},
619619
"outputs": [],
620620
"source": [
@@ -681,7 +681,7 @@
681681
},
682682
{
683683
"cell_type": "code",
684-
"execution_count": 9,
684+
"execution_count": null,
685685
"metadata": {
686686
"ExecuteTime": {
687687
"end_time": "2023-08-24T06:55:28.220563261Z",
@@ -712,7 +712,7 @@
712712
},
713713
{
714714
"cell_type": "code",
715-
"execution_count": 10,
715+
"execution_count": null,
716716
"metadata": {},
717717
"outputs": [
718718
{
@@ -770,7 +770,7 @@
770770
},
771771
{
772772
"cell_type": "code",
773-
"execution_count": 11,
773+
"execution_count": null,
774774
"metadata": {
775775
"ExecuteTime": {
776776
"end_time": "2023-08-24T07:01:54.496249166Z",
@@ -820,7 +820,7 @@
820820
},
821821
{
822822
"cell_type": "code",
823-
"execution_count": 10,
823+
"execution_count": null,
824824
"metadata": {
825825
"ExecuteTime": {
826826
"end_time": "2023-08-24T07:13:58.198454432Z",

0 commit comments

Comments
 (0)