diff --git a/research/nlp/textrcnn/modelarts/start.py b/research/nlp/textrcnn/modelarts/start.py index defc3d8327d8fc8fd79ceee0d88dd543318370bd..fdee613dc61da28830e5a45e6f4e2f963e4fabe3 100644 --- a/research/nlp/textrcnn/modelarts/start.py +++ b/research/nlp/textrcnn/modelarts/start.py @@ -1,4 +1,4 @@ -# Copyright 2021 Huawei Technologies Co., Ltd +# Copyright 2021-2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ from src.model_utils.moxing_adapter import moxing_wrapper from src.model_utils.config import config as cfg from src.model_utils.device_adapter import get_device_id -set_seed(0) +set_seed(2) os.system("pip3 install gensim==4.0.1 python-Levenshtein urllib3==1.26.5 chardet==3.0.4") sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) diff --git a/research/nlp/textrcnn/train.py b/research/nlp/textrcnn/train.py index da126ed1beaf91369ec1add318e36945cc6d0dc0..88038870900cf0d0b3e15262d389eccf7628e1ff 100644 --- a/research/nlp/textrcnn/train.py +++ b/research/nlp/textrcnn/train.py @@ -1,4 +1,4 @@ -# Copyright 2020 Huawei Technologies Co., Ltd +# Copyright 2020-2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ from src.model_utils.moxing_adapter import moxing_wrapper from src.model_utils.config import config as cfg from src.model_utils.device_adapter import get_device_id -set_seed(0) +set_seed(2) def modelarts_pre_process():