From cddd099f0f912af75f71d3eccc661fcb223f11bd Mon Sep 17 00:00:00 2001 From: shibo19 Date: Mon, 21 Mar 2022 15:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93patch=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patch/apply_patch.sh | 2 +- patch/make_patch.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/patch/apply_patch.sh b/patch/apply_patch.sh index ed35a24ff3..e8da730edc 100644 --- a/patch/apply_patch.sh +++ b/patch/apply_patch.sh @@ -22,7 +22,7 @@ PYTORCH_DIR=$1 function main() { cd $PYTORCH_DIR - patch -p1 < $ROOT_DIR/patch/npu.patch + patch -N -p1 < $ROOT_DIR/patch/npu.patch cp -r $ROOT_DIR/third_party/* $PYTORCH_DIR/third_party/ } diff --git a/patch/make_patch.sh b/patch/make_patch.sh index 240b46621d..29dd16cda7 100644 --- a/patch/make_patch.sh +++ b/patch/make_patch.sh @@ -21,6 +21,5 @@ PATCH_PYTORCH=$2 OUT_PATCH_FILE=$3 diff -Nur --exclude=.git* --exclude=OWNERS \ - --exclude=access_control_test.py \ - --exclude=build.sh --exclude=third_party \ + --exclude=access_control_test.py --exclude=third_party \ --exclude=README* -Nur ${OFFICIAL_PYTORCH} ${PATCH_PYTORCH} > ${OUT_PATCH_FILE} \ No newline at end of file -- Gitee