pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21k stars 3.62k forks source link

Ideas for Benchmarking Performance in Mac M1 #3141

Open reshinthadithyan opened 3 years ago

reshinthadithyan commented 3 years ago

❓ Questions & Help

Benchmark the performance of Pytorch Geometric in Mac M1 Processor[Any processor/environment] for the matter of fact.

cc @rusty1s

rusty1s commented 3 years ago

Besides benchmarking on Mac M1 Processors, it would be great to have a general test bed to benchmark common GNNs on various datasets. We recently released

which we can directly make use of to implement this idea.

One idea for this is the following:

We provide a general benchmark function, in which the user inputs a GNN model, a data object/data loader, and a mapping from data attributes to model forward inputs, and receives general profiling information such as average runtime and peak memory consumption:

model = GCN(...)
dataset = TUDataset(..., name='ENZYMES')
loader = DataLoader(dataset, batch_size=128)

benchmark(model, loader, lambda: data: data.x, data.edge_index)
reshinthadithyan commented 3 years ago

Makes sense, I'll work on this.