From 46a31d50b0ca0beeaa6eba5f3f1351c09d7023f9 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Mon, 8 May 2023 17:43:02 -0400 Subject: [PATCH 1/4] pytorch 2.0.1 Also, remove `openssl@1.1` dependency. Co-authored-by: Nanda H Krishna Signed-off-by: Rui Chen --- Formula/pytorch.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Formula/pytorch.rb b/Formula/pytorch.rb index c44e67be9e585..b913ee25ceb6c 100644 --- a/Formula/pytorch.rb +++ b/Formula/pytorch.rb @@ -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 @@ -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" @@ -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 @@ -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 @@ -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 @@ -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 From 1d42a7b53f758cbcb40a6331adfe663a747a24da Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Mon, 8 May 2023 17:51:52 -0400 Subject: [PATCH 2/4] torchvision 0.15.2 Signed-off-by: Rui Chen --- Formula/torchvision.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Formula/torchvision.rb b/Formula/torchvision.rb index d644d37005607..764475c83414f 100644 --- a/Formula/torchvision.rb +++ b/Formula/torchvision.rb @@ -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 @@ -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 @@ -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 From 76a7fc9334579c2b38fac8bf5dfa7704b81b756d Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 26 Jun 2023 04:14:39 +0000 Subject: [PATCH 3/4] pytorch: update 2.0.1 bottle. --- Formula/pytorch.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/pytorch.rb b/Formula/pytorch.rb index b913ee25ceb6c..b01a31def2494 100644 --- a/Formula/pytorch.rb +++ b/Formula/pytorch.rb @@ -15,10 +15,10 @@ class Pytorch < Formula end bottle do - sha256 cellar: :any, arm64_ventura: "5d7f8b5a6b68b843e4d378f06edcf04fc4eb3e6a67bd31a30aaff0d22cbbc2a4" - sha256 cellar: :any, arm64_monterey: "4dcc2fe35ee17d0332467402b41f7e141c4685c6e44adb69923b5d12fac2cb42" - sha256 cellar: :any, monterey: "3a6099a1d604fca547bd5c1e83022699d871b878f0c8da55afb56289b8ecff08" - sha256 cellar: :any_skip_relocation, x86_64_linux: "7ef4ba460cda2220b94ff2a5e327da87cba35c92cb6788353c0ddb42d26cb45c" + sha256 cellar: :any, arm64_ventura: "d5da1b67fbf72e1a79a7e0ef1010d6f80a622d9a7f9ebf5c87c162b720502249" + sha256 cellar: :any, arm64_monterey: "204ff6ed893b56cdcae110ea1cd4694d711a19c11e0c6fd639f7f934a5e597ad" + sha256 cellar: :any, monterey: "ef11394e28e6596639ff2643396e7413880e1d7b364a4cd9f2472eb4d6854cfc" + sha256 cellar: :any_skip_relocation, x86_64_linux: "028064b99e2334269e4f7df6a06989cc189299936379ad3ddcb94e09974a1ee8" end depends_on "cmake" => :build From 2f96091f5c61aaa98e9ee4fe33174b5d14a1e50a Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 26 Jun 2023 04:14:40 +0000 Subject: [PATCH 4/4] torchvision: update 0.15.2 bottle. --- Formula/torchvision.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/torchvision.rb b/Formula/torchvision.rb index 764475c83414f..5b833ba0b8a76 100644 --- a/Formula/torchvision.rb +++ b/Formula/torchvision.rb @@ -13,10 +13,10 @@ class Torchvision < Formula end bottle do - sha256 cellar: :any, arm64_ventura: "7a548e74f474b3e0abf348d4310e5378d7c94dd9d619ed0e29d1cfdd75b18069" - sha256 cellar: :any, arm64_monterey: "55abcc4df58d879e5c37e1d93c4477a85f6374146d4f8172bd59c0f252b9dc20" - sha256 cellar: :any, monterey: "b008fcf1d9e255b7262731c596caa6de6a0d0101db1592daa7658204c21616d1" - sha256 cellar: :any_skip_relocation, x86_64_linux: "761810f80255cee80f2f99e23349104f3b96bf4f6a8ccd936cac024ef6c301da" + sha256 cellar: :any, arm64_ventura: "75440708f8608b93654b6b1eddf6e6bd3ec6d0470a3aa74068c5c96c92df4b3e" + sha256 cellar: :any, arm64_monterey: "10a6de636adbe6f57091bfbe6718fa0cc674b135f413f5e38a97a4c70bb419c9" + sha256 cellar: :any, monterey: "12e2137577e16fc6cf6d846833af321e6d37ba66eda44cbc4956bd4636716c2c" + sha256 cellar: :any_skip_relocation, x86_64_linux: "7dcbbd35107bd23179d27706c716c8d0d3bf256b353aef9add91f92ad50f98ae" end depends_on "cmake" => :build