Installing the cuDNN Python Frontend
You can install the cuDNN Python frontend from pip wheel or from source. After installing the cuDNN Python frontend, you can run the pytest command to verify the installation.
Installing the Python Frontend from pip Wheel
Installing the Python Frontend from pip Wheel
Download the pip wheel corresponding to your Python installation.
Installing the Python Frontend from Source
The minimum Python version needed is 3.6. The Python binding compilation requires a development package, which can be installed by running the following command:
-
If you require a custom installation path for the CUDA Toolkit or cuDNN software, set environment variables as follows:
If you don’t set these environment variables, the command for downloading the frontend Python API gets the CUDA Toolkit and cuDNN from the default system paths.
-
Download the frontend Python API from the NVIDIA cudnn-frontend project on GitHub.
Verifying the Python Frontend Installation
To test whether your installation was successful, run the following command:
Including the Python Frontend Library
To include the Python frontend library, run: