{"id":24192,"library":"paddlepaddle-gpu","title":"PaddlePaddle GPU","description":"PaddlePaddle GPU is Baidu's deep learning framework with GPU support. Current version is 2.6.2. Release cadence is roughly quarterly.","status":"active","version":"2.6.2","language":"python","source_language":"en","source_url":"https://github.com/PaddlePaddle/Paddle","tags":["deep learning","gpu","paddlepaddle","baidu"],"install":[{"cmd":"pip install paddlepaddle-gpu","lang":"bash","label":"Install PaddlePaddle GPU"}],"dependencies":[],"imports":[{"note":"The package name is paddlepaddle-gpu but the import is always 'paddle'","wrong":"import paddlepaddle","symbol":"paddle","correct":"import paddle"}],"quickstart":{"code":"import paddle\nx = paddle.to_tensor([1, 2, 3])\ny = x + 1\nprint(y)\nprint('PaddlePaddle version:', paddle.__version__)","lang":"python","description":"Basic tensor creation and operation."},"warnings":[{"fix":"Migrate from fluid API to new imperative API. See migration guide.","message":"PaddlePaddle 2.0+ changed many APIs (e.g., fluid module removed). Code written for v1.x will not work without modifications.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Install from official site or specify version matching your CUDA.","message":"When using paddlepaddle-gpu, your CUDA and cuDNN versions must match the prebuilt wheel. Check compatibility matrix.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace fluid layers with corresponding paddle.nn layers.","message":"paddle.fluid has been deprecated since 2.3. Use paddle.nn, paddle.optimizer, etc.","severity":"deprecated","affected_versions":">=2.3.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install paddlepaddle-gpu' and use 'import paddle'.","cause":"You installed paddlepaddle (CPU) but not paddlepaddle-gpu or did not import correctly.","error":"ModuleNotFoundError: No module named 'paddle'"},{"fix":"Install matching cuDNN or install a different wheel version that matches your CUDA/cuDNN.","cause":"Your system lacks the required cuDNN version for the installed paddlepaddle-gpu wheel.","error":"RuntimeError: (PreconditionNotMet) Cannot load cudnn shared library. Cannot call CUDNN API."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}