Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytorch 2.0.1 torchvision 0.15.2 #130487

Merged
merged 4 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions Formula/pytorch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ class Pytorch < Formula
homepage "https://pytorch.org/"
# TODO: Check if we can use unversioned `protobuf` at version bump
url "https://github.com/pytorch/pytorch.git",
tag: "v2.0.0",
revision: "c263bd43e8e8502d4726643bc6fd046f0130ac0e"
tag: "v2.0.1",
revision: "e9ebda29d87ce0916ab08c06ab26fd3766a870e5"
license "BSD-3-Clause"
revision 1

livecheck do
url :stable
Expand All @@ -31,7 +30,6 @@ class Pytorch < Formula
depends_on macos: :monterey # MPS backend only supports 12.3 and above
depends_on "numpy"
depends_on "openblas"
depends_on "openssl@1.1"
depends_on "protobuf@21"
depends_on "pybind11"
depends_on "python-typing-extensions"
Expand All @@ -42,8 +40,8 @@ class Pytorch < Formula
end

resource "filelock" do
url "https://files.pythonhosted.org/packages/4f/1f/6e1b740698069650b245744957a25957d599b953550a959ab2a584a8825b/filelock-3.10.0.tar.gz"
sha256 "3199fd0d3faea8b911be52b663dfccceb84c95949dd13179aa21436d1a79c4ce"
url "https://files.pythonhosted.org/packages/24/85/cf4df939cc0a037ebfe18353005e775916faec24dcdbc7a2f6539ad9d943/filelock-3.12.0.tar.gz"
sha256 "fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"
end

resource "Jinja2" do
Expand All @@ -57,8 +55,8 @@ class Pytorch < Formula
end

resource "networkx" do
url "https://files.pythonhosted.org/packages/99/f9/d45c9ecf50a6b67a200e0bbd324201b5cd777dfc0e6c8f6d1620ce5a7ada/networkx-3.0.tar.gz"
sha256 "9a9992345353618ae98339c2b63d8201c381c2944f38a2ab49cb45a4c667e412"
url "https://files.pythonhosted.org/packages/fd/a1/47b974da1a73f063c158a1f4cc33ed0abf7c04f98a19050e80c533c31f0c/networkx-3.1.tar.gz"
sha256 "de346335408f84de0eada6ff9fafafff9bcda11f0a0dfaa931133debb146ab61"
end

resource "opt-einsum" do
Expand All @@ -72,7 +70,6 @@ class Pytorch < Formula
end

def install
openssl_root = Formula["openssl@1.1"].opt_prefix
python_exe = Formula["python@3.11"].opt_libexec/"bin/python"
args = %W[
-GNinja
Expand All @@ -81,7 +78,6 @@ def install
-DBUILD_PYTHON=ON
-DCMAKE_CXX_COMPILER=#{ENV.cxx}
-DCMAKE_C_COMPILER=#{ENV.cc}
-DOPENSSL_ROOT_DIR=#{openssl_root}
-DPYTHON_EXECUTABLE=#{python_exe}
-DUSE_CUDA=OFF
-DUSE_DISTRIBUTED=ON
Expand Down
17 changes: 8 additions & 9 deletions Formula/torchvision.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ class Torchvision < Formula

desc "Datasets, transforms, and models for computer vision"
homepage "https://github.com/pytorch/vision"
url "https://github.com/pytorch/vision/archive/refs/tags/v0.15.1.tar.gz"
sha256 "689d23d4ebb0c7e54e8651c89b17155b64341c14ae4444a04ca7dc6f2b6a0a43"
url "https://github.com/pytorch/vision/archive/refs/tags/v0.15.2.tar.gz"
sha256 "1efcb80e0a6e42c54f07ee16167839b4d302aeeecc12839cc47c74b06a2c20d4"
license "BSD-3-Clause"
revision 1

livecheck do
url :stable
Expand Down Expand Up @@ -35,8 +34,8 @@ class Torchvision < Formula
end

resource "certifi" do
url "https://files.pythonhosted.org/packages/37/f7/2b1b0ec44fdc30a3d31dfebe52226be9ddc40cd6c0f34ffc8923ba423b69/certifi-2022.12.7.tar.gz"
sha256 "35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"
url "https://files.pythonhosted.org/packages/93/71/752f7a4dd4c20d6b12341ed1732368546bc0ca9866139fe812f6009d9ac7/certifi-2023.5.7.tar.gz"
sha256 "0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"
end

resource "charset-normalizer" do
Expand All @@ -50,13 +49,13 @@ class Torchvision < Formula
end

resource "requests" do
url "https://files.pythonhosted.org/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz"
sha256 "98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf"
url "https://files.pythonhosted.org/packages/e0/69/122171604bcef06825fa1c05bd9e9b1d43bc9feb8c6c0717c42c92cc6f3c/requests-2.30.0.tar.gz"
sha256 "239d7d4458afcb28a692cdd298d87542235f4ca8d36d03a15bfc128a6559a2f4"
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/21/79/6372d8c0d0641b4072889f3ff84f279b738cd8595b64c8e0496d4e848122/urllib3-1.26.15.tar.gz"
sha256 "8a388717b9476f934a21484e8c8e61875ab60644d29b9b39e11e4b9dc1c6b305"
url "https://files.pythonhosted.org/packages/fb/c0/1abba1a1233b81cf2e36f56e05194f5e8a0cec8c03c244cab56cc9dfb5bd/urllib3-2.0.2.tar.gz"
sha256 "61717a1095d7e155cdb737ac7bb2f4324a858a1e2e6466f6d03ff630ca68d3cc"
end

def install
Expand Down