Skip to content

Commit 6d1bca0

Browse files
Github action: auto-update.
1 parent 9b7705f commit 6d1bca0

File tree

154 files changed

+1372
-7249
lines changed

Some content is hidden

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

154 files changed

+1372
-7249
lines changed
Binary file not shown.

dev/_downloads/082e73328a5caf8c1fe9ad7fe05cf68f/plot_incremental_FNO_darcy.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"name": "python",
198198
"nbconvert_exporter": "python",
199199
"pygments_lexer": "ipython3",
200-
"version": "3.10.14"
200+
"version": "3.9.19"
201201
}
202202
},
203203
"nbformat": 4,

dev/_downloads/0ac9f102e4f1903984e3b4a7d517c88f/plot_darcy_flow.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"name": "python",
7979
"nbconvert_exporter": "python",
8080
"pygments_lexer": "ipython3",
81-
"version": "3.10.14"
81+
"version": "3.9.19"
8282
}
8383
},
8484
"nbformat": 4,
Binary file not shown.

dev/_downloads/1a3050d57a180b92b424ce128dfe1d36/plot_FNO_darcy.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
"""
2-
Training an FNO on Darcy-Flow
2+
Training a TFNO on Darcy-Flow
33
=============================
44
55
In this example, we demonstrate how to use the small Darcy-Flow example we ship with the package
6-
to train a Fourier-Neural Operator
6+
to train a Tensorized Fourier-Neural Operator
77
"""
88

99
# %%
1010
#
1111

12+
1213
import torch
1314
import matplotlib.pyplot as plt
1415
import sys
15-
from neuralop.models import FNO
16+
from neuralop.models import TFNO
1617
from neuralop import Trainer
1718
from neuralop.training import AdamW
1819
from neuralop.data.datasets import load_darcy_flow_small
@@ -33,13 +34,9 @@
3334

3435

3536
# %%
36-
# We create a simple FNO model
37+
# We create a tensorized FNO model
3738

38-
model = FNO(n_modes=(16, 16),
39-
in_channels=1,
40-
out_channels=1,
41-
hidden_channels=32,
42-
projection_channels=64)
39+
model = TFNO(n_modes=(16, 16), in_channels=1, hidden_channels=32, projection_channels=64, factorization='tucker', rank=0.42)
4340
model = model.to(device)
4441

4542
n_params = count_model_params(model)
Binary file not shown.

dev/_downloads/2a3ecbdce9fd535c53d44cc373f6a228/checkpoint_FNO_darcy.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,7 @@
3333
# %%
3434
# We create a tensorized FNO model
3535

36-
model = TFNO(n_modes=(16, 16),
37-
in_channels=1,
38-
out_channels=1,
39-
hidden_channels=32,
40-
projection_channels=64,
41-
factorization='tucker',
42-
rank=0.42)
43-
36+
model = TFNO(n_modes=(16, 16), in_channels=1, hidden_channels=32, projection_channels=64, factorization='tucker', rank=0.42)
4437
model = model.to(device)
4538

4639
n_params = count_model_params(model)
Binary file not shown.
Binary file not shown.

dev/_downloads/52640fe09fbb5b08e5a2370e57b3b066/checkpoint_FNO_darcy.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"outputs": [],
5353
"source": [
54-
"model = TFNO(n_modes=(16, 16),\n in_channels=1, \n out_channels=1, \n hidden_channels=32, \n projection_channels=64, \n factorization='tucker', \n rank=0.42)\n\nmodel = model.to(device)\n\nn_params = count_model_params(model)\nprint(f'\\nOur model has {n_params} parameters.')\nsys.stdout.flush()"
54+
"model = TFNO(n_modes=(16, 16), in_channels=1, hidden_channels=32, projection_channels=64, factorization='tucker', rank=0.42)\nmodel = model.to(device)\n\nn_params = count_model_params(model)\nprint(f'\\nOur model has {n_params} parameters.')\nsys.stdout.flush()"
5555
]
5656
},
5757
{
@@ -154,7 +154,7 @@
154154
"name": "python",
155155
"nbconvert_exporter": "python",
156156
"pygments_lexer": "ipython3",
157-
"version": "3.10.14"
157+
"version": "3.9.19"
158158
}
159159
},
160160
"nbformat": 4,

0 commit comments

Comments
 (0)