Skip to content

Commit

Permalink
fix applying patch
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Dec 19, 2024
1 parent b532a52 commit 25b5508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/patch-pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
set -euo pipefail

REPO_ROOT="$(git rev-parse --show-toplevel)"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [[ ! $REPO_ROOT ]]; then
echo "Failed to identify root of the repository."
Expand All @@ -16,4 +17,4 @@ echo "Applying PyTorch patches in $REPO_ROOT"
cd "$REPO_ROOT"

curl -sSL https://github.com/pytorch/pytorch/pull/126516.diff | git apply -
git apply pytorch.patch
git apply "${SCRIPT_DIR}/pytorch.patch"

0 comments on commit 25b5508

Please sign in to comment.