Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .azure-pipelines/scripts/ut/run_basic_others.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ sed -i '/ ux\//d' run.sh
sed -i '/ neural_coder\//d' run.sh
sed -i '/ ipex\//d' run.sh
sed -i '/ itex\//d' run.sh
sed -i '/ pruning\//d' run.sh
sed -i '/ pruning_v1\//d' run.sh
sed -i '/ pruning/d' run.sh
sed -i '/ scheduler\//d' run.sh
sed -i '/ nas\//d' run.sh

echo "copy model for dynas..."
mkdir -p .torch/ofa_nets || true
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/scripts/ut/run_basic_pruning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ echo "set up UT env..."
bash /neural-compressor/.azure-pipelines/scripts/ut/env_setup.sh
lpot_path=$(python -c 'import neural_compressor; import os; print(os.path.dirname(neural_compressor.__file__))')
cd /neural-compressor/test || exit 1
find ./pruning -name "test*.py" | sed 's,\.\/,coverage run --source='"${lpot_path}"' --append ,g' | sed 's/$/ --verbose/'> run.sh
find ./pruning_v1 -name "test*.py" | sed 's,\.\/,coverage run --source='"${lpot_path}"' --append ,g' | sed 's/$/ --verbose/'>> run.sh
find ./pruning* -name "test*.py" | sed 's,\.\/,coverage run --source='"${lpot_path}"' --append ,g' | sed 's/$/ --verbose/'> run.sh
find ./scheduler -name "test*.py" | sed 's,\.\/,coverage run --source='"${lpot_path}"' --append ,g' | sed 's/$/ --verbose/'>> run.sh
find ./nas -name "test*.py" | sed 's,\.\/,coverage run --source='"${lpot_path}"' --append ,g' | sed 's/$/ --verbose/'>> run.sh

LOG_DIR=/neural-compressor/log_dir
mkdir -p ${LOG_DIR}
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/template/docker-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ steps:
targetType: "inline"
script: |
docker ps -a
docker start $(docker ps -aq)
if [[ $(docker ps -a | grep -i '${{ parameters.containerName }}'$) ]]; then
docker start $(docker ps -aq)
echo "remove left files through container ..."
docker exec ${{ parameters.containerName }} bash -c "ls -a /neural-compressor && rm -fr /neural-compressor/* && rm -fr /neural-compressor/.* && ls -a /neural-compressor || true"
fi
Expand Down
17 changes: 10 additions & 7 deletions .azure-pipelines/ut-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,16 @@ stages:
jobs:
- job: CollectDatafiles
steps:
- template: template/docker-template.yml
parameters:
dockerConfigName: "commonDockerConfig"
repoName: "neural-compressor"
repoTag: "py38"
dockerFileName: "Dockerfile"
containerName: ""
- script: |
if [[ ! $(docker images | grep -i ${IMAGE_NAME}:${IMAGE_TAG}) ]]; then
docker build -f ${BUILD_SOURCESDIRECTORY}/.azure-pipelines/docker/Dockerfile.devel -t ${IMAGE_NAME}:${IMAGE_TAG} .
fi
docker images | grep -i ${IMAGE_NAME}
if [[ $? -ne 0 ]]; then
echo "NO Such Repo"
exit 1
fi
displayName: "Build develop docker image"

- task: DownloadPipelineArtifact@2
inputs:
Expand Down