{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"},{"label":"Compilers","url":"https://skillfed.io/packages/category/software-development-compilers"}],"enrichment":{"capability":"PyTensor is a Python library for defining, optimizing, and evaluating symbolic mathematical expressions on multi-dimensional arrays, with automatic differentiation and compilation to C, JAX, or Numba.","skillfed_tags":["symbolic-computation","autodiff","probabilistic-programming"],"use_cases":["Build probabilistic models and Bayesian inference pipelines using PyMC, which relies on PyTensor for expression evaluation.","Define and optimize complex mathematical expressions (e.g., neural network layers, physics simulations) before compilation.","Compute gradients automatically for optimization and machine learning without manually writing backpropagation.","Compile symbolic expressions to efficient C or GPU code via JAX or Numba for production inference.","Prototype numerical algorithms with symbolic manipulation and graph visualization before deployment."],"what_it_does":"PyTensor is a symbolic computation library that lets you define mathematical expressions as static graphs, then compile and optimize them before execution. Unlike eager frameworks, you first declare symbolic variables and operations, then convert the graph into a callable function that PyTensor optimizes\u2014removing redundant operations and replacing computations with efficient BLAS routines. It supports automatic differentiation (gradients) and can compile expressions to C, JAX, or Numba for performance.\n\nThe library is primarily used as the computational backend for PyMC, a probabilistic programming framework, but works standalone for any numerical computing task involving arrays and mathematical operations. It depends on numpy for array operations, scipy for scientific functions, and numba for JIT compilation; setuptools and filelock are build and locking utilities. The static-graph design allows advanced optimizations that dynamic frameworks cannot perform.","worth_installing":"Yes, if you need symbolic computation with automatic differentiation and graph optimization. PyTensor is actively maintained, has no known vulnerabilities, installs easily, and is the standard backend for PyMC. Install it if you're doing probabilistic programming, building custom optimized numerical pipelines, or need fine-grained control over computation graphs. Not necessary if you only need eager-mode tensor operations (use NumPy or PyTorch instead)."},"id":"pytensor","links":{"html":"https://skillfed.io/packages/pytensor","md":"https://skillfed.io/packages/pytensor.md","pypi":"https://pypi.org/project/pytensor/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"pytensor","python_support":"supports_current","summary":"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."},"popularity":{"monthly_downloads":2197832,"position":3217,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.3.0"}
