-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Benchmark] Add inference test for current benchmarking and record pe…
…rformance (#4892) * [Benchmark] Add inference and profile in citation * Print end-to-end time of inference * Print end-to-end time of one epoch * Add inference.sh * Add inference and profile for to_hetero_mag * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add inference for pna * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add inference for benchmark/points/edge_cnn * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix error * Update scripts * Add profile test to increase code coverage * Update script of points benchmark * Update script for missing rename * Update scripts according to the comments * Add CPU test for profile * update * update * update * update * reset * update * changelog Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
- Loading branch information
1 parent
6522693
commit 9b129b8
Showing
18 changed files
with
365 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
#!/bin/sh | ||
|
||
echo "Cora" | ||
echo "====" | ||
|
||
echo "GCN" | ||
python gcn.py --dataset=Cora --inference | ||
python gcn.py --dataset=Cora --random_splits --inference | ||
python gcn.py --dataset=Cora --inference --profile | ||
python gcn.py --dataset=Cora --random_splits --inference --profile | ||
|
||
echo "GAT" | ||
python gat.py --dataset=Cora --inference | ||
python gat.py --dataset=Cora --random_splits --inference | ||
python gat.py --dataset=Cora --inference --profile | ||
python gat.py --dataset=Cora --random_splits --inference --profile | ||
|
||
echo "Cheby" | ||
python cheb.py --dataset=Cora --num_hops=3 --inference | ||
python cheb.py --dataset=Cora --num_hops=3 --random_splits --inference | ||
python cheb.py --dataset=Cora --num_hops=3 --inference --profile | ||
python cheb.py --dataset=Cora --num_hops=3 --random_splits --inference --profile | ||
|
||
echo "SGC" | ||
python sgc.py --dataset=Cora --K=3 --weight_decay=0.0005 --inference | ||
python sgc.py --dataset=Cora --K=3 --weight_decay=0.0005 --random_splits --inference | ||
python sgc.py --dataset=Cora --K=3 --weight_decay=0.0005 --inference --profile | ||
python sgc.py --dataset=Cora --K=3 --weight_decay=0.0005 --random_splits --inference --profile | ||
|
||
echo "ARMA" | ||
python arma.py --dataset=Cora --num_stacks=2 --num_layers=1 --shared_weights=True --inference | ||
python arma.py --dataset=Cora --num_stacks=3 --num_layers=1 --shared_weights=True --random_splits --inference | ||
python arma.py --dataset=Cora --num_stacks=2 --num_layers=1 --shared_weights=True --inference --profile | ||
python arma.py --dataset=Cora --num_stacks=3 --num_layers=1 --shared_weights=True --random_splits --inference --profile | ||
|
||
echo "APPNP" | ||
python appnp.py --dataset=Cora --alpha=0.1 --inference | ||
python appnp.py --dataset=Cora --alpha=0.1 --random_splits --inference | ||
python appnp.py --dataset=Cora --alpha=0.1 --inference --profile | ||
python appnp.py --dataset=Cora --alpha=0.1 --random_splits --inference --profile | ||
|
||
echo "CiteSeer" | ||
echo "========" | ||
|
||
echo "GCN" | ||
python gcn.py --dataset=CiteSeer --inference | ||
python gcn.py --dataset=CiteSeer --random_splits --inference | ||
python gcn.py --dataset=CiteSeer --inference --profile | ||
python gcn.py --dataset=CiteSeer --random_splits --inference --profile | ||
|
||
echo "GAT" | ||
python gat.py --dataset=CiteSeer --inference | ||
python gat.py --dataset=CiteSeer --random_splits --inference | ||
python gat.py --dataset=CiteSeer --inference --profile | ||
python gat.py --dataset=CiteSeer --random_splits --inference --profile | ||
|
||
echo "Cheby" | ||
python cheb.py --dataset=CiteSeer --num_hops=2 --inference | ||
python cheb.py --dataset=CiteSeer --num_hops=3 --random_splits --inference | ||
python cheb.py --dataset=CiteSeer --num_hops=2 --inference --profile | ||
python cheb.py --dataset=CiteSeer --num_hops=3 --random_splits --inference --profile | ||
|
||
echo "SGC" | ||
python sgc.py --dataset=CiteSeer --K=2 --weight_decay=0.005 --inference | ||
python sgc.py --dataset=CiteSeer --K=2 --weight_decay=0.005 --random_splits --inference | ||
python sgc.py --dataset=CiteSeer --K=2 --weight_decay=0.005 --inference --profile | ||
python sgc.py --dataset=CiteSeer --K=2 --weight_decay=0.005 --random_splits --inference --profile | ||
|
||
echo "ARMA" | ||
python arma.py --dataset=CiteSeer --num_stacks=3 --num_layers=1 --shared_weights=True --inference | ||
python arma.py --dataset=CiteSeer --num_stacks=3 --num_layers=1 --shared_weights=True --random_splits --inference | ||
python arma.py --dataset=CiteSeer --num_stacks=3 --num_layers=1 --shared_weights=True --inference --profile | ||
python arma.py --dataset=CiteSeer --num_stacks=3 --num_layers=1 --shared_weights=True --random_splits --inference --profile | ||
|
||
echo "APPNP" | ||
python appnp.py --dataset=CiteSeer --alpha=0.1 --inference | ||
python appnp.py --dataset=CiteSeer --alpha=0.1 --random_splits --inference | ||
python appnp.py --dataset=CiteSeer --alpha=0.1 --inference --profile | ||
python appnp.py --dataset=CiteSeer --alpha=0.1 --random_splits --inference --profile | ||
|
||
echo "PubMed" | ||
echo "======" | ||
|
||
echo "GCN" | ||
python gcn.py --dataset=PubMed --inference | ||
python gcn.py --dataset=PubMed --random_splits --inference | ||
python gcn.py --dataset=PubMed --inference --profile | ||
python gcn.py --dataset=PubMed --random_splits --inference --profile | ||
|
||
echo "GAT" | ||
python gat.py --dataset=PubMed --lr=0.01 --weight_decay=0.001 --output_heads=8 --inference | ||
python gat.py --dataset=PubMed --lr=0.01 --weight_decay=0.001 --output_heads=8 --random_splits --inference | ||
python gat.py --dataset=PubMed --lr=0.01 --weight_decay=0.001 --output_heads=8 --inference --profile | ||
python gat.py --dataset=PubMed --lr=0.01 --weight_decay=0.001 --output_heads=8 --random_splits --inference --profile | ||
|
||
echo "Cheby" | ||
python cheb.py --dataset=PubMed --num_hops=2 --inference | ||
python cheb.py --dataset=PubMed --num_hops=2 --random_splits --inference | ||
python cheb.py --dataset=PubMed --num_hops=2 --inference --profile | ||
python cheb.py --dataset=PubMed --num_hops=2 --random_splits --inference --profile | ||
|
||
echo "SGC" | ||
python sgc.py --dataset=PubMed --K=2 --weight_decay=0.0005 --inference | ||
python sgc.py --dataset=PubMed --K=2 --weight_decay=0.0005 --random_splits --inference | ||
python sgc.py --dataset=PubMed --K=2 --weight_decay=0.0005 --inference --profile | ||
python sgc.py --dataset=PubMed --K=2 --weight_decay=0.0005 --random_splits --inference --profile | ||
|
||
echo "ARMA" | ||
python arma.py --dataset=PubMed --num_stacks=2 --num_layers=1 --skip_dropout=0 --inference | ||
python arma.py --dataset=PubMed --num_stacks=2 --num_layers=1 --skip_dropout=0.5 --random_splits --inference | ||
python arma.py --dataset=PubMed --num_stacks=2 --num_layers=1 --skip_dropout=0 --inference --profile | ||
python arma.py --dataset=PubMed --num_stacks=2 --num_layers=1 --skip_dropout=0.5 --random_splits --inference --profile | ||
|
||
echo "APPNP" | ||
python appnp.py --dataset=PubMed --alpha=0.1 --inference | ||
python appnp.py --dataset=PubMed --alpha=0.1 --random_splits --inference | ||
python appnp.py --dataset=PubMed --alpha=0.1 --inference --profile | ||
python appnp.py --dataset=PubMed --alpha=0.1 --random_splits --inference --profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.