Skip to main content

Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.

Project description

PyTensor is a Python library that allows you to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays. It is built on top of NumPy. PyTensor features:

  • tight integration with NumPy: a similar interface to NumPy’s. numpy.ndarrays are also used internally in PyTensor-compiled functions.

  • efficient symbolic differentiation: PyTensor can compute derivatives for functions of one or many inputs.

  • speed and stability optimizations: avoid nasty bugs when computing expressions such as log(1 + exp(x)) for large values of x.

  • dynamic C code generation: evaluate expressions faster.

  • extensive unit-testing and self-verification: includes tools for detecting and diagnosing bugs and/or potential problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytensor-2.8.10.tar.gz (3.7 MB view details)

Uploaded Source

File details

Details for the file pytensor-2.8.10.tar.gz.

File metadata

  • Download URL: pytensor-2.8.10.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pytensor-2.8.10.tar.gz
Algorithm Hash digest
SHA256 1cc26ebf6a5a8678b37bcb6ae497334bca3e3f7e27cb7815b0c9af0c0deb83f3
MD5 d62bc2707a79865798ad624be363897b
BLAKE2b-256 e3526948ef8ee466d1e82a53cb2b1e845824c849acf459be1dc981e94a9f7fca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page