{"id":26871,"library":"cutensor-cu13","title":"NVIDIA cuTENSOR Python Bindings (CUDA 13)","description":"Python bindings for NVIDIA cuTENSOR, a GPU-accelerated tensor computation library optimized for deep learning and HPC. Version 2.6.0 supports CUDA 13.x. Release cadence follows cuTENSOR releases (major.minor.patch).","status":"active","version":"2.6.0","language":"python","source_language":"en","source_url":"https://github.com/NVIDIA/cuTENSOR","tags":["cuda13","gpu","tensor","linear-algebra","nvidia"],"install":[{"cmd":"pip install cutensor-cu13","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Required CUDA runtime libraries for GPU operations.","package":"nvidia-cuda-runtime-cu13","optional":false},{"reason":"Required for BLAS operations used internally by cuTENSOR.","package":"nvidia-cublas-cu13","optional":false}],"imports":[{"wrong":"from cutensor import tensor","symbol":"tensor","correct":"import cutensor"}],"quickstart":{"code":"import numpy as np\nfrom cutensor import tensor\n\n# Create two tensors on GPU (requires CUDA context)\na = tensor(np.random.rand(3,4), device='cuda')\nb = tensor(np.random.rand(4,5), device='cuda')\n# Perform matrix multiplication\nc = a @ b\nprint(c)\n","lang":"python","description":"Basic tensor creation and matrix multiplication on GPU."},"warnings":[{"fix":"Use 'from cutensor import tensor' directly; no explicit init call needed.","message":"The Python API changed in cuTENSOR 2.0+; the old 'cutensor.init' pattern was removed.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Call np.ascontiguousarray() on NumPy arrays before converting to cutensor tensors.","message":"Input tensors must be contiguous in memory; non-contiguous arrays may cause silent wrong results or crashes.","severity":"gotcha","affected_versions":"All"},{"fix":"Replace 'TensorHandle' with 'tensor' class.","message":"Using 'cutensor.TensorHandle' is deprecated in favor of 'cutensor.tensor'.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'13':6,29 '2.6.0':26 'acceler':15 'algebra':42 'bind':4,8 'cadenc':32 'comput':17 'cuda':5,28 'cuda13':37 'cutensor':2,11,34 'deep':21 'follow':33 'gpu':14,38 'gpu-acceler':13 'hpc':24 'learn':22 'librari':18 'linear':41 'linear-algebra':40 'major.minor.patch':36 'nvidia':1,10,43 'optim':19 'python':3,7 'releas':31,35 'support':27 'tensor':16,39 'version':25 'x':30","created_at":"2026-05-01T17:43:19.673717+00:00","updated_at":"2026-05-01T17:43:19.673717+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://developer.nvidia.com/cutensor","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/cutensor-cu13/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}