mxnet-generate 559 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. mkdir -p ../third_party
  3. repository=https://github.com/apache/incubator-mxnet.git
  4. if [ -d "../third_party/incubator-mxnet" ]; then
  5. pushd "../third_party/${identifier}" > /dev/null
  6. echo "Fetch ${repository}..."
  7. git fetch -p
  8. echo "Reset ${repository}..."
  9. git reset --hard origin/master
  10. popd > /dev/null
  11. else
  12. echo "Clone ${repository}..."
  13. pushd "../third_party" > /dev/null
  14. git clone --recursive ${repository}
  15. popd > /dev/null
  16. fi
  17. # echo "Update '../src/mxnet-operator.json'"
  18. # python mxnet-operator-json.py