Przeglądaj źródła

Update TensorFlow script

Lutz Roeder 4 lat temu
rodzic
commit
2df061edd6
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      tools/tf

+ 2 - 4
tools/tf

@@ -33,10 +33,8 @@ sync() {
     git submodule sync --quiet
     git submodule update --quiet --init --recursive
     popd > /dev/null
-    [ -d "./third_party/source/tflite-support" ] || git clone --quiet --recursive https://github.com/tensorflow/tflite-support.git "./third_party/source/tflite-support"
-    pushd "./third_party/source/tflite-support" > /dev/null
-    git pull --quiet --prune
-    popd > /dev/null
+    mkdir -p "./third_party/source/tflite-support/tensorflow_lite_support/metadata"
+    curl --silent --location --output "./third_party/source/tflite-support/tensorflow_lite_support/metadata/metadata_schema.fbs" "https://github.com/tensorflow/tflite-support/blob/master/tensorflow_lite_support/metadata/metadata_schema.fbs?raw=true"
 }
 
 install() {