Skip to content

Commit

Permalink
Fixed missing pytorch.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhkhuc committed Jul 2, 2017
1 parent d699c24 commit cffb308
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
41 changes: 33 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
os:
- linux
# - osx
language: python
python:
- "2.7"
- "3.6"
- 2.7
# - 3.6
cache: bundler
install:
# - if [[ $TRAVIS_OS_NAME == linux ]]; then
# if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
# pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
# elif [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
# pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp36-cp36m-linux_x86_64.whl
# fi
# elif [[ $TRAVIS_OS_NAME == osx ]]; then
# if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
# pip install http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl
# elif [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
# pip install http://download.pytorch.org/whl/torch-0.1.12.post2-cp36-cp36m-macosx_10_7_x86_64.whl
# fi
# fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then pip install -q http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl fi
# - if [ $TRAVIS_OS_NAME == linux ] && [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then pip install -q http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp36-cp36m-linux_x86_64.whl
# - if [ $TRAVIS_OS_NAME == osx ] && [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then pip install -q http://download.pytorch.org/whl/torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl
# - if [ $TRAVIS_OS_NAME == osx ] && [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then pip install -q http://download.pytorch.org/whl/torch-0.1.12.post2-cp36-cp36m-macosx_10_7_x86_64.whl
# - pip install -q http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
- pip install -q torchvision
- pip install -q numpy==1.13.0
script:
- python 0_multiply.py
- 1_linear_regression.py
- 2_logistic_regression.py
- 3_neural_net.py
- 4_modern_neural_net.py
- 5_convolutional_net.py
- 6_lstm.py
- python 1_linear_regression.py
- python 2_logistic_regression.py
- python 3_neural_net.py
- python 4_modern_neural_net.py
- python 5_convolutional_net.py
- python 6_lstm.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/vinhkhuc/PyTorch-Mini-Tutorials.svg?branch=master)](https://travis-ci.org/vinhkhuc/PyTorch-Mini-Tutorials)
<!-- [![Build Status](https://travis-ci.org/vinhkhuc/PyTorch-Mini-Tutorials.svg?branch=master)](https://travis-ci.org/vinhkhuc/PyTorch-Mini-Tutorials) -->

Minimal tutorials for [PyTorch](https://github.com/pytorch/pytorch) adapted
from Alec Radford's [Theano tutorials](https://github.com/Newmu/Theano-Tutorials).
Expand Down

0 comments on commit cffb308

Please sign in to comment.