#!/bin/bash
find ./models -type d -exec chmod +wr {} \;
find ./models -type f -exec chmod +wr {} \;

cp -f models/*.ms ./mslite/models/hiai/compatibility_test/
cp -f models/*.pb models/*.mindir models/*.onnx models/*.tflite models/*.caffemodel models/*.prototxt ./mslite/models/hiai/
cp -f models/*.bin* ./mslite/models/hiai/input_output/input/
cp -f models/*.out ./mslite/models/hiai/input_output/output/
rm -f models/*
find /nfs/dataset/workspace/mindspore_dataset/lite_update/ -type f -exec rm {} \;
cp -r ./mslite /nfs/dataset/workspace/mindspore_dataset/lite_update/
cp -r ./mslite /nfs/dataset/workspace/mindspore_dataset/

rm -f ./mslite/models/hiai/*
find ./mslite -type f -exec rm {} \;
