From 1efd5f618e9b1a3ddcb0c91327e50247c6c147b8 Mon Sep 17 00:00:00 2001 From: shenpengcheng Date: Wed, 19 Oct 2022 01:28:28 +0000 Subject: [PATCH 1/2] =?UTF-8?q?license=20=E9=97=AE=E9=A2=98=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PyTorch/contrib/cv/classification/SPACH/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PyTorch/contrib/cv/classification/SPACH/main.py b/PyTorch/contrib/cv/classification/SPACH/main.py index e641f07499..8c7e27610a 100644 --- a/PyTorch/contrib/cv/classification/SPACH/main.py +++ b/PyTorch/contrib/cv/classification/SPACH/main.py @@ -5,6 +5,7 @@ import datetime import numpy as np import time import torch +import torch_npu import torch.backends.cudnn as cudnn import json import os -- Gitee From 06d5dfaa4a19cdbb27dfe160ce83f576d36f8299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E9=B9=8F=E7=A8=8B?= Date: Wed, 19 Oct 2022 02:00:37 +0000 Subject: [PATCH 2/2] update PyTorch/contrib/cv/classification/SPACH/main.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 沈鹏程 --- PyTorch/contrib/cv/classification/SPACH/main.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/PyTorch/contrib/cv/classification/SPACH/main.py b/PyTorch/contrib/cv/classification/SPACH/main.py index 8c7e27610a..93fd95f00b 100644 --- a/PyTorch/contrib/cv/classification/SPACH/main.py +++ b/PyTorch/contrib/cv/classification/SPACH/main.py @@ -1,5 +1,16 @@ -# Copyright (c) 2015-present, Facebook, Inc. -# All rights reserved. +# Copyright (c) 2019-2021 NVIDIA CORPORATION. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import argparse import datetime import numpy as np -- Gitee