Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: riga/tfdeploy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.0
Choose a base ref
...
head repository: riga/tfdeploy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 1,920 additions and 457 deletions.
  1. +12 −31 .travis.yml
  2. +23 −17 LICENSE
  3. +102 −60 README.md
  4. +64 −0 docs/index.rst
  5. +2 −3 setup.py
  6. +25 −0 tests/__init__.py
  7. +6 −1 tests/base.py
  8. +32 −1 tests/core.py
  9. +5 −1 tests/models/simple.py
  10. +23 −0 tests/models/simple2.py
  11. +438 −136 tests/ops.py
  12. +99 −0 tests/perf/create_plots.py
  13. +174 −0 tests/perf/measure_runtimes.py
  14. +5 −1 tests/{perf.py → perf/simple.py}
  15. +910 −206 tfdeploy.py
43 changes: 12 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
language: python
sudo: required

dist: trusty

language: python

services:
- docker

matrix:
include:
- os: linux
dist: trusty
python: "2.7"
env: TD_TEST_SCIPY=0
- os: linux
dist: trusty
python: "3.5"
env: TD_TEST_SCIPY=0
- os: linux
dist: trusty
python: "2.7"
env: TD_TEST_SCIPY=1
- os: linux
dist: trusty
python: "3.5"
env: TD_TEST_SCIPY=1
- env: TF_TAG=1.0.1 TD_TEST_SCIPY=0 TD_TEST_GPU=0
- env: TF_TAG=1.0.1 TD_TEST_SCIPY=1 TD_TEST_GPU=0
- env: TF_TAG=1.0.1-py3 TD_TEST_SCIPY=0 TD_TEST_GPU=0

install:
- pip install numpy
- if [ "$TD_TEST_SCIPY" = "1" ]; then
sudo apt-get -y install libblas-dev liblapack-dev libatlas-base-dev gfortran;
travis_wait 30 pip install scipy;
fi
- if [ "$TRAVIS_PYTHON_VERSION" = "2.7" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl;
fi
- if [ "$TRAVIS_PYTHON_VERSION" = "3.5" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl;
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-cp35m-linux_x86_64.whl;
pip3 install tensorflow-0.8.0-cp35-cp35m-linux_x86_64.whl;
fi
- docker pull tensorflow/tensorflow:$TF_TAG

script: python -m unittest tests
script: docker run -t --rm -v `pwd`:/root/tfdeploy -w /root/tfdeploy -e TD_TEST_SCIPY=$TD_TEST_SCIPY -e TD_TEST_GPU=$TD_TEST_GPU tensorflow/tensorflow:$TF_TAG python -m unittest tests
40 changes: 23 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
The MIT License (MIT)
Copyright (c) 2016-2025, Marcel Rieger
All rights reserved.

Copyright (c) 2016 Marcel R.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading