A library for building scalable graph neural networks in TensorFlow.
Project description
TensorFlow GNN
Summary
TensorFlow GNN is a library to build Graph Neural Networks on the TensorFlow platform. It provides...
- a
tfgnn.GraphTensor
type to represent graphs with a heterogeneous schema, that is, multiple types of nodes and edges; - tools for data preparation, notably a graph sampler to convert a huge database into a stream of reasonably-sized subgraphs for training and inference;
- a collection of ready-to-use models and Keras layers to do your own GNN modeling;
- a high-level API for training orchestration.
This library is an OSS port of a Google-internal library used in a broad variety of contexts, on homogeneous and heterogeneous graphs, and in conjunction with other scalable graph mining tools.
For background and discussion, please see O. Ferludin et al.: TF-GNN: Graph Neural Networks in TensorFlow, 2023 (full citation below).
Quickstart
Google Colab lets you run TF-GNN demos from your browser, no installation required:
- Molecular Graph Classification with the MUTAG dataset.
- Solving OGBN-MAG end-to-end trains a model on heterogeneous sampled subgraphs from the popular OGBN-MAG benchmark.
- Learning shortest paths with GraphNetworks demonstrates an advanced Encoder/Process/Decoder architecture for predicting the edges of a shortest path.
For all colabs and user guides, please see the Documentation overview page, which also links to the API docs.
Installation Instructions
The latest stable release of TensorFlow GNN is available from
pip install tensorflow_gnn
For installation from source, see our Developer Guide.
Key platform requirements:
- TensorFlow 2.12, 2.13, 2.14 or 2.15, and any GPU drivers it needs [instructions].
- Keras v2, as traditionally included with TensorFlow 2.x. (TF-GNN does not work with the new multi-backend Keras v3.)
- Apache Beam for distributed graph sampling.
TF-GNN is developed and tested on Linux. Running on other platforms supported by TensorFlow may be possible.
Citation
When referencing this library in a paper, please cite the TF-GNN paper:
@article{tfgnn,
author = {Oleksandr Ferludin and Arno Eigenwillig and Martin Blais and
Dustin Zelle and Jan Pfeifer and Alvaro Sanchez{-}Gonzalez and
Wai Lok Sibon Li and Sami Abu{-}El{-}Haija and Peter Battaglia and
Neslihan Bulut and Jonathan Halcrow and
Filipe Miguel Gon{\c{c}}alves de Almeida and Pedro Gonnet and
Liangze Jiang and Parth Kothari and Silvio Lattanzi and
Andr{\'{e}} Linhares and Brandon Mayer and Vahab Mirrokni and
John Palowitch and Mihir Paradkar and Jennifer She and
Anton Tsitsulin and Kevin Villela and Lisa Wang and David Wong and
Bryan Perozzi},
title = {{TF-GNN:} Graph Neural Networks in TensorFlow},
journal = {CoRR},
volume = {abs/2207.03522},
year = {2023},
url = {http://arxiv.org/abs/2207.03522},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tensorflow-gnn-1.0.0rc0.tar.gz
.
File metadata
- Download URL: tensorflow-gnn-1.0.0rc0.tar.gz
- Upload date:
- Size: 638.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3311b550a3a2a6456ee88037f8ff12de2cd37f7120e30dcae86e17f8d160a77d |
|
MD5 | 4523989befa9495e380de7312d0d1f94 |
|
BLAKE2b-256 | 008ab6a8861b0825be8bcdec64c16aff9fa9c5765dfc1f5447db3b6189708883 |
File details
Details for the file tensorflow_gnn-1.0.0rc0-py3-none-any.whl
.
File metadata
- Download URL: tensorflow_gnn-1.0.0rc0-py3-none-any.whl
- Upload date:
- Size: 839.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8131977ddb6286f6451732c3c4185b42031ed0f4c284ff44aeea85a3851c44 |
|
MD5 | e1be7226a8edce03ae660993414fd0a0 |
|
BLAKE2b-256 | ee0c4efb48be49abc905e430735b1132f00662980a4d3819aec123819cb64e99 |