Skip to content

Commit

Permalink
Directly import greeter_summary (tensorflow#25)
Browse files Browse the repository at this point in the history
Fixes tensorflow#20. Pin pylint to 1.8.1. Make linter cd into bazel-tensorboard-plugin-example.
  • Loading branch information
chihuahua authored Mar 19, 2018
1 parent a5ccd5d commit 2ac2d90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ before_install:
;;
esac
- pip install pylint
- pip install pylint==1.8.1
- pip install futures==3.1.1
- pip install grpcio==1.4.0

Expand Down Expand Up @@ -81,10 +81,10 @@ script:
# --local_resources=400,2,1.0

- |
# DIR=$(pwd)
# cd bazel-genfiles
# find "${NAME}" -name \*.py -exec cp {} "${DIR}"/{} \;
# cd "${DIR}"
DIR=$(pwd)
cd bazel-tensorboard-plugin-example
find "${NAME}" -name \*.py -exec cp {} "${DIR}"/{} \;
cd "${DIR}"
pylint "${NAME}"
before_cache:
Expand Down
3 changes: 2 additions & 1 deletion greeter_plugin/greeter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

import tensorflow as tf

from greeter_plugin import greeter_summary
# TODO(chihuahua): Figure out why pylint invalidates this import.
import greeter_summary # pylint: disable=import-error

# Directory into which to write tensorboard data.
LOGDIR = '/tmp/greeter_demo'
Expand Down

0 comments on commit 2ac2d90

Please sign in to comment.