Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
remove torch (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
chicm-ms authored Mar 18, 2020
1 parent 0c04e78 commit e39958f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions test/nni_test/nnitest/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import shlex
import traceback
import json
import torch
import ruamel.yaml as yaml

from utils import setup_experiment, get_experiment_status, get_yml_content, dump_yml_content, get_experiment_id, \
Expand Down Expand Up @@ -59,11 +58,6 @@ def run_test_case(test_case_config, it_config, args):
if sys.platform == 'win32':
test_yml_config['trial']['command'] = test_yml_config['trial']['command'].replace('python3', 'python')

# check GPU
if test_yml_config['trial']['gpuNum'] > 0 and torch.cuda.device_count() < 1:
print('skipping {}, gpu is not available'.format(test_case_config['name']))
return

# generate temporary config yml file to launch experiment
new_config_file = config_path + '.tmp'
dump_yml_content(new_config_file, test_yml_config)
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-frameworkcontroller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install torch==1.2.0 --user
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-kubeflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install torch==1.2.0 --user
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-pai-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
- script: |
set PATH=$(ENV_PATH)
python -m pip install scikit-learn==0.21.0 --user
python -m pip install torch===1.2.0 -f https://download.pytorch.org/whl/torch_stable.html --user
displayName: 'Install dependencies for integration tests'
- script: |
cd test
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-pai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install torch==1.2.0 --user
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-remote-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
displayName: 'Install nni toolkit via source code'
- script: |
python -m pip install scikit-learn==0.20.1 --user
python -m pip install torch===1.2.0 -f https://download.pytorch.org/whl/torch_stable.html --user
displayName: 'Install dependencies for integration tests'
- task: SSH@0
inputs:
Expand Down
1 change: 0 additions & 1 deletion test/pipelines/pipelines-it-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
source install.sh
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install torch==1.2.0 --user
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
Expand Down

0 comments on commit e39958f

Please sign in to comment.