{"library":"onnxruntime-rocm","title":"ONNX Runtime ROCm","description":"ONNX Runtime is a cross-platform machine-learning model accelerator. The onnxruntime-rocm package provides the ROCm execution provider for AMD GPUs. Current version is 1.22.2.post1, derived from upstream onnxruntime 1.22.x. Release cadence follows upstream but may lag.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install onnxruntime-rocm","pip install onnxruntime-rocm==1.22.2.post1"],"cli":null},"imports":["import onnxruntime","onnxruntime.get_available_providers()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import onnxruntime\nprint(onnxruntime.__version__)\nprint('Available providers:', onnxruntime.get_available_providers())\n# Example with ROCm provider\nimport numpy as np\nsess = onnxruntime.InferenceSession(\n    'model.onnx',\n    providers=['ROCMExecutionProvider']\n)\ninput_name = sess.get_inputs()[0].name\nresult = sess.run(None, {input_name: np.random.randn(1, 3, 224, 224).astype(np.float32)})\nprint(result[0].shape)","lang":"python","description":"Verify installation and run a basic inference with ROCm EP.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}