Code for ONO, a neural operator built upon orthogonal attention.
The code depends on python 3.7
and pytorch:
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
python Darcy_example.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 10 --lr 0.001 --use_tb 1 --attn_type nystrom --max_grad_norm 0.1 --orth 1 --psi_dim 32 --batch-size 4 --mlp_ratio 2
python NS_example2.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 16 --batch-size 8
python ela_example.py --model ONO2 --n-hidden 128 --attn_type nystrom --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 8 --batch-size 8
python pla_example.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 8 --batch-size 8
python pipe_example.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 8 --batch-size 2 --attn_type nystrom
python airfoil_example.py --model ONO2 --attn_type nystrom --n-hidden 128 --n-heads 8 --n-layers 6 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 8 --batch-size 4
python space_gen.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 16 --batch-size 8
python time_gen.py --model ONO2 --n-hidden 128 --n-heads 8 --n-layers 8 --lr 0.001 --use_tb 1 --max_grad_norm 0.1 --orth 1 --psi_dim 8 --batch-size 8