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

cp -f models/*.pb models/*.mindir models/*.onnx models/*.tflite models/*.caffemodel models/*.prototxt ./mslite/models_train
cp -f models/*.bin* ./mslite/models_train/input_output/
cp -f models/*.out ./mslite/models_train/input_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 {} \;
