Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF Docs fix for 1.3 #13296

Merged
merged 2 commits into from
Sep 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorflow/docs_src/extend/adding_an_op.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ REGISTER_KERNEL_BUILDER(Name("ZeroOut").Device(DEVICE_CPU), ZeroOutOp);
### Multi-threaded CPU kernels

To write a multi-threaded CPU kernel, the Shard function in
[`work_sharder.h`](https://www.tensorflow.org/code/tensorflow/core/framework/work_sharder.h)
[`work_sharder.h`](https://www.tensorflow.org/code/tensorflow/core/util/work_sharder.h)
can be used. This function shards a computation function across the
threads configured to be used for intra-op threading (see
intra_op_parallelism_threads in
Expand Down
5 changes: 2 additions & 3 deletions tensorflow/docs_src/get_started/summaries_and_tensorboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TensorBoard is fully configured, it looks like this:
</div>

This tutorial is intended to get you started with simple TensorBoard usage.
There are other resources available as well! The [TensorBoard README](https://www.tensorflow.org/code/tensorflow/tensorboard/README.md)
There are other resources available as well! The [TensorBoard's GitHub](https://github.com/tensorflow/tensorboard)
has a lot more information on TensorBoard usage, including tips & tricks, and
debugging information.

Expand Down Expand Up @@ -216,5 +216,4 @@ corner. Each tab represents a set of serialized data that can be visualized.
For in depth information on how to use the *graph* tab to visualize your graph,
see @{$graph_viz$TensorBoard: Graph Visualization}.

For more usage information on TensorBoard in general, see the [TensorBoard
README](https://www.tensorflow.org/code/tensorflow/tensorboard/README.md).
For more usage information on TensorBoard in general, see the [TensorBoard's GitHub](https://github.com/tensorflow/tensorboard).
4 changes: 2 additions & 2 deletions tensorflow/docs_src/tutorials/image_retraining.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Once TensorBoard is running, navigate your web browser to `localhost:6006` to vi

The script will log TensorBoard summaries to `/tmp/retrain_logs` by default. You can change the directory with the `--summaries_dir` flag.

The [TensorBoard README](https://www.tensorflow.org/code/tensorflow/tensorboard/README.md) has a lot more information on TensorBoard usage, including tips & tricks, and debugging information.
The [TensorBoard's GitHub](https://github.com/tensorflow/tensorboard) has a lot more information on TensorBoard usage, including tips & tricks, and debugging information.

## Using the Retrained Model

Expand Down Expand Up @@ -337,7 +337,7 @@ the (much larger) training set.

By default the script uses a pretrained version of the Inception v3 model
architecture. This is a good place to start because it provides high accuracy
results, but if you intend to deploy your model on mobile devices or other
results, but if you intend to deploy your model on mobile devices or other
resource-constrained environments you may want to trade off a little accuracy
for much smaller file sizes or faster speeds. To help with that, the
[retrain.py script](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/image_retraining/retrain.py)
Expand Down
8 changes: 6 additions & 2 deletions tensorflow/tools/ci_build/ci_sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ do_pip_smoke_test() {
"The pip smoke test failed."
}

do_code_link_check() {
tensorflow/tools/ci_build/code_link_check.sh
}

do_check_load_py_test() {
BUILD_CMD="bazel build //tensorflow/tools/pip_package:check_load_py_test"
${BUILD_CMD}
Expand All @@ -431,8 +435,8 @@ do_check_load_py_test() {
}

# Supply all sanity step commands and descriptions
SANITY_STEPS=("do_pylint PYTHON2" "do_pylint PYTHON3" "do_buildifier" "do_bazel_nobuild" "do_pip_package_licenses_check" "do_lib_package_licenses_check" "do_java_package_licenses_check" "do_pip_smoke_test" "do_check_load_py_test")
SANITY_STEPS_DESC=("Python 2 pylint" "Python 3 pylint" "buildifier check" "bazel nobuild" "pip: license check for external dependencies" "C library: license check for external dependencies" "Java Native Library: license check for external dependencies" "Pip Smoke Test: Checking py_test dependencies exist in pip package" "Check load py_test: Check that BUILD files with py_test target properly load py_test")
SANITY_STEPS=("do_pylint PYTHON2" "do_pylint PYTHON3" "do_buildifier" "do_bazel_nobuild" "do_pip_package_licenses_check" "do_lib_package_licenses_check" "do_java_package_licenses_check" "do_pip_smoke_test" "do_check_load_py_test" "do_code_link_check")
SANITY_STEPS_DESC=("Python 2 pylint" "Python 3 pylint" "buildifier check" "bazel nobuild" "pip: license check for external dependencies" "C library: license check for external dependencies" "Java Native Library: license check for external dependencies" "Pip Smoke Test: Checking py_test dependencies exist in pip package" "Check load py_test: Check that BUILD files with py_test target properly load py_test" "Code Link Check: Check there are no broken links")

INCREMENTAL_FLAG=""

Expand Down
28 changes: 28 additions & 0 deletions tensorflow/tools/ci_build/code_link_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

# please run this at root directory of tensorflow
success=1

for i in `grep -onI https://www.tensorflow.org/code/\[a-zA-Z0-9/._-\]\* -r tensorflow`
do
filename=`echo $i|awk -F: '{print $1}'`
linenumber=`echo $i|awk -F: '{print $2}'`
target=`echo $i|awk -F: '{print $4}'|tail -c +27`

# skip files in tensorflow/models
if [[ $target == tensorflow_models/* ]] ; then
continue
fi

if [ ! -f $target ] && [ ! -d $target ]; then
success=0
echo Broken link $target at line $linenumber of file $filename
fi
done

if [ $success == 0 ]; then
echo Code link check fails.
exit 1
fi

echo Code link check success.