1 Star 0 Fork 0

明故为知 / PyTorch-Project-Framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
circle.yml 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
明故为知 提交于 2020-11-09 12:32 . [update] pytorch version
version: 2.1
workflows:
test:
jobs:
- test-py36
- test-py37
- test-py38
jobs:
test-py36: &test-template
docker:
- image: circleci/python:3.6
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt > /dev/null
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
- run:
name: run unittest
command: |
. venv/bin/activate
python -m unittest discover test
- run:
name: test components
command: |
. venv/bin/activate
python -m test_component
- run:
name: test sample
command: |
. venv/bin/activate
# python -m main -m "lenet" -r "hp1" -d "MNIST"
- store_artifacts:
path: test-reports
destination: test-reports
test-py37:
<<: *test-template
docker:
- image: circleci/python:3.7
test-py38:
<<: *test-template
docker:
- image: circleci/python:3.8
Python
1
https://gitee.com/lmy0217/PyTorch-Project-Framework.git
git@gitee.com:lmy0217/PyTorch-Project-Framework.git
lmy0217
PyTorch-Project-Framework
PyTorch-Project-Framework
master

搜索帮助