You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

conftest.py 1.4 kB

1234567891011121314151617181920212223242526272829303132
  1. # Copyright 2019 Huawei Technologies Co., Ltd
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # ============================================================================
  15. """The st config."""
  16. import os
  17. import sys
  18. from tests.st.func.profiler import RAW_DATA_BASE
  19. from tests.utils import mindspore
  20. sys.modules['mindspore'] = mindspore
  21. BASE_SUMMARY_DIR = os.path.realpath(os.path.join(RAW_DATA_BASE, "run_1"))
  22. # Notice:
  23. # 1. Run_2 is new performance data.
  24. # 2. The names of some files have been changed. \
  25. # For example, timeline_display_1.json becomes ascend_timeline_display_1.json.
  26. # 3. Some new files have been added. For example, aicpu_intermediate_1.csv.
  27. # 4. It is recommended that the new mindinsight st ut test be based on this version of the performance file.
  28. BASE_SUMMARY_DIR_RUN_2 = os.path.realpath(os.path.join(RAW_DATA_BASE, "run_2"))