Install and import¶
PyTorch¶
You can manually download the PyTorch gnn
from GitHub
>>> git clone https://github.com/mtiezzi/torch_gnn.git
and add the files to your project.
Tensorflow¶
Install the current release of Tensorflow gnn
with pip
:
$ pip install gnn
To upgrade to a newer release use the --upgrade
flag:
$ pip install --upgrade gnn
If you do not have permission to install software systemwide, you can
install into your user directory using the --user
flag:
$ pip install --user gnn
Alternatively, you can manually download gnn
from GitHub
>>> git clone https://github.com/mtiezzi/gnn.git
and add the GNN.py
(and optionally gnn_utils.py
) file to your project.
To start using the modules, you have to import them:
>>> import gnn.GNN as GNN
>>> import gnn.gnn_utils