diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-08-02 16:20:42 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-08-02 16:24:10 -0700 |
commit | c90494d740321ade59e20ee0110f534a49a0c6bf (patch) | |
tree | 2f4687a14bcbd468202537a4b499aeba8249e2e4 /tensorflow/tools/benchmark | |
parent | 7ac31c1a3c66a02f158f2819f730a1e7438a2327 (diff) |
Fix some typos and try to make it clear the exact command to type by removing a bash command prompt. This should make copy and paste easier.
PiperOrigin-RevId: 164055131
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r-- | tensorflow/tools/benchmark/README.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tensorflow/tools/benchmark/README.md b/tensorflow/tools/benchmark/README.md index fd1bebe835..ca0da2d41b 100644 --- a/tensorflow/tools/benchmark/README.md +++ b/tensorflow/tools/benchmark/README.md @@ -12,8 +12,8 @@ both on desktop machines and on Android. (0) Refer to https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android to edit the `WORKSPACE` to configure the android NDK/SDK. (1) build for your specific platform, e.g.: -```bash -$bazel build -c opt \ +``` +bazel build -c opt \ --crosstool_top=//external:android/crosstool \ --cpu=armeabi-v7a \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ @@ -22,16 +22,16 @@ $bazel build -c opt \ (2) Connect your phone. Push the binary to your phone with adb push (make the directory if required): -```bash -$adb push bazel-bin/tensorflow/tools/benchmark/benchmark_model /data/local/tmp +``` +adb push bazel-bin/tensorflow/tools/benchmark/benchmark_model /data/local/tmp ``` (3) Push the compute graph that you need to test. For example: adb push tensorflow_inception_graph.pb /data/local/tmp (4) Run the benchmark. For example: -```bash -$adb shell "/data/local/tmp/benchmark_model \ +``` +adb shell "/data/local/tmp/benchmark_model \ --graph=/data/local/tmp/tensorflow_inception_graph.pb \ --input_layer="input:0" \ --input_layer_shape="1,224,224,3" \ @@ -40,14 +40,14 @@ $adb shell "/data/local/tmp/benchmark_model \ ``` ### On desktop: (1) build the binary -```bash -$bazel build --config opt tensorflow/tools/benchmark:benchmark_model +``` +bazel build -c opt tensorflow/tools/benchmark:benchmark_model ``` (2) Run on your compute graph, similar to the Android case but without the need of adb shell. For example: -```bash -$bazel-bin/tensorflow/tools/benchmark/benchmark_model \ +``` +bazel-bin/tensorflow/tools/benchmark/benchmark_model \ --graph=tensorflow_inception_graph.pb \ --input_layer="input:0" \ --input_layer_shape="1,224,224,3" \ |