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 sonoma
ventura
monterey
Intel sonoma
ventura
monterey
64-bit linux

Current versions:

stable 2.1.0

Revision: 1

Depends on:

eigen 3.4.0 C++ template library for linear algebra
libuv 1.47.0 Multi-platform support library with a focus on asynchronous I/O
numpy 1.26.2 Package for scientific computing with Python
openblas 0.3.24 Optimized BLAS library
protobuf 25.1 Protocol buffers (Google's data interchange format)
pybind11 2.11.1 Seamless operability between C++11 and Python
python-typing-extensions 4.8.0 Backported and experimental type hints for Python
pyyaml 6.0.1 YAML framework for Python
libomp 17.0.6 LLVM's OpenMP runtime library

Depends on when building from source:

cmake 3.27.9 Cross-platform make
ninja 1.11.1 Small build system for use with gyp or CMake
python@3.11 3.11.6 Interpreted, interactive, object-oriented programming language

Requires: Xcode (build), macOS >= 12

Conflicts with: fmt

Analytics:

Installs (30 days)
pytorch 2,061
Installs on Request (30 days)
pytorch 1,569
Build Errors (30 days)
pytorch 22
Installs (90 days)
pytorch 3,836
Installs on Request (90 days)
pytorch 2,783
Installs (365 days)
pytorch 9,617
Installs on Request (365 days)
pytorch 7,004
Fork me on GitHub