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.

ui.sh 1.3 kB

5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. # Copyright 2020 Huawei Technologies Co., Ltd.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. SCRIPT_BASEDIR=$(cd "$(dirname "$0")" || exit; pwd)
  16. build_ui() {
  17. NPM=$(command -v npm)
  18. if [ -z "${NPM}" ]; then
  19. echo "Could not find npm command"
  20. exit 1
  21. fi
  22. UI_SOURCE_DIR=$(realpath "${SCRIPT_BASEDIR}/../../mindinsight/ui")
  23. cd "${UI_SOURCE_DIR}" || exit
  24. rm -rf dist
  25. ${NPM} config set strict-ssl false
  26. ${NPM} config set unsafe-perm true
  27. ${NPM} config set user 0
  28. ${NPM} install
  29. ${NPM} run build
  30. if [ ! -f "dist/index.html" ]; then
  31. echo "dist does not have file index.html, build failed"
  32. exit 1
  33. fi
  34. rm -rf node_modules
  35. }
  36. cd "${SCRIPT_BASEDIR}" || exit
  37. build_ui

MindInsight为MindSpore提供了简单易用的调优调试能力。在训练过程中,可以将标量、张量、图像、计算图、模型超参、训练耗时等数据记录到文件中,通过MindInsight可视化页面进行查看及分析。

Contributors (1)