pytorch

Install command:
brew install pytorch

Formerly known as: libtorch

Tensors and dynamic neural networks

https://pytorch.org/

License: BSD-3-Clause

Formula JSON API: /api/formula/pytorch.json

Formula code: pytorch.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sequoia
sonoma
ventura
Intel sonoma
ventura
64-bit linux

Current versions:

stable 2.5.1

Revision: 3

Depends on:

abseil 20240722.0 C++ Common Libraries
eigen 3.4.0 C++ template library for linear algebra
libuv 1.49.2 Multi-platform support library with a focus on asynchronous I/O
libyaml 0.2.5 YAML Parser
numpy 2.2.0 Package for scientific computing with Python
openblas 0.3.28 Optimized BLAS library
protobuf 29.2 Protocol buffers (Google's data interchange format)
pybind11 2.13.6 Seamless operability between C++11 and Python
sleef 3.7 SIMD library for evaluating elementary functions
libomp 19.1.6 LLVM's OpenMP runtime library

Depends on when building from source:

cmake 3.31.3 Cross-platform make
ninja 1.12.1 Small build system for use with gyp or CMake
python@3.13 3.13.1 Interpreted, interactive, object-oriented programming language

Requires: Xcode (build), macOS >= 12

Analytics:

Installs (30 days)
pytorch 3,847
pytorch --HEAD 8
Installs on Request (30 days)
pytorch 3,066
pytorch --HEAD 8
Build Errors (30 days)
pytorch 20
Installs (90 days)
pytorch 9,939
pytorch --HEAD 27
Installs on Request (90 days)
pytorch 8,048
pytorch --HEAD 27
Installs (365 days)
pytorch 32,001
pytorch --HEAD 65
Installs on Request (365 days)
pytorch 25,796
pytorch --HEAD 64
Fork me on GitHub