PaddlePaddle GPU

raw JSON →
2.6.2 verified Fri May 01 auth: no python

PaddlePaddle GPU is Baidu's deep learning framework with GPU support. Current version is 2.6.2. Release cadence is roughly quarterly.

pip install paddlepaddle-gpu
error ModuleNotFoundError: No module named 'paddle'
cause You installed paddlepaddle (CPU) but not paddlepaddle-gpu or did not import correctly.
fix
Run 'pip install paddlepaddle-gpu' and use 'import paddle'.
error RuntimeError: (PreconditionNotMet) Cannot load cudnn shared library. Cannot call CUDNN API.
cause Your system lacks the required cuDNN version for the installed paddlepaddle-gpu wheel.
fix
Install matching cuDNN or install a different wheel version that matches your CUDA/cuDNN.
breaking PaddlePaddle 2.0+ changed many APIs (e.g., fluid module removed). Code written for v1.x will not work without modifications.
fix Migrate from fluid API to new imperative API. See migration guide.
gotcha When using paddlepaddle-gpu, your CUDA and cuDNN versions must match the prebuilt wheel. Check compatibility matrix.
fix Install from official site or specify version matching your CUDA.
deprecated paddle.fluid has been deprecated since 2.3. Use paddle.nn, paddle.optimizer, etc.
fix Replace fluid layers with corresponding paddle.nn layers.

Basic tensor creation and operation.

import paddle
x = paddle.to_tensor([1, 2, 3])
y = x + 1
print(y)
print('PaddlePaddle version:', paddle.__version__)