From ccaa16e8752dbdd9e91748e9c0328ed11b7d3dd8 Mon Sep 17 00:00:00 2001 From: Dmitry Volodin Date: Thu, 29 Oct 2020 16:54:07 +0300 Subject: [PATCH] fix typos in misc files --- tensorflow/tensorflow.bzl | 4 ++-- tensorflow/tools/compatibility/tf_upgrade_v2_main.py | 6 +++--- tensorflow/tools/graph_transforms/sparsify_gather.cc | 2 +- third_party/gpus/check_cuda_libs.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 7fadb298a2a..72351028fd8 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -1710,7 +1710,7 @@ def tf_custom_op_library_additional_deps(): clean_dep("//tensorflow/core:framework_headers_lib"), ] + if_windows([clean_dep("//tensorflow/python:pywrap_tensorflow_import_lib")]) -# A list of targets that contains the implemenation of +# A list of targets that contains the implementation of # tf_custom_op_library_additional_deps. It's used to generate a DEF file for # exporting symbols from _pywrap_tensorflow.dll on Windows. def tf_custom_op_library_additional_deps_impl(): @@ -2704,7 +2704,7 @@ def if_cuda_or_rocm(if_true, if_false = []): If the same additional dependency is needed for both CUDA and ROCm (for eg. `reduction_ops` dependency for the `bias_op` target above), - then specifying that dependency in both both `if_cuda` and `if_rocm` will + then specifying that dependency in both `if_cuda` and `if_rocm` will result in both those functions returning a select statement, which contains the same dependency, which then leads to a duplicate dependency bazel error. diff --git a/tensorflow/tools/compatibility/tf_upgrade_v2_main.py b/tensorflow/tools/compatibility/tf_upgrade_v2_main.py index 7c7461c19da..d634f727a22 100644 --- a/tensorflow/tools/compatibility/tf_upgrade_v2_main.py +++ b/tensorflow/tools/compatibility/tf_upgrade_v2_main.py @@ -107,7 +107,7 @@ Simple usage: "--no_upgrade_compat_v1_import", dest="no_upgrade_compat_v1_import", help=("If specified, don't upgrade explicit imports of " - "`tensorflow.compat.v1 as tf` to the v2 apis. Otherwise, " + "`tensorflow.compat.v1 as tf` to the v2 APIs. Otherwise, " "explicit imports of the form `tensorflow.compat.v1 as tf` will " "be upgraded."), action="store_true") @@ -159,7 +159,7 @@ Simple usage: "single file.") if args.in_place and args.output_file: raise ValueError( - "--outfile argument is invalid when when converting in place") + "--outfile argument is invalid when converting in place") output_file = args.input_file if args.in_place else args.output_file files_processed, report_text, errors = process_file( args.input_file, output_file, upgrade) @@ -172,7 +172,7 @@ Simple usage: "file tree.") if args.in_place and args.output_tree: raise ValueError( - "--outtree argument is invalid when when converting in place") + "--outtree argument is invalid when converting in place") output_tree = args.input_tree if args.in_place else args.output_tree files_processed, report_text, errors = upgrade.process_tree( args.input_tree, output_tree, args.copy_other_files) diff --git a/tensorflow/tools/graph_transforms/sparsify_gather.cc b/tensorflow/tools/graph_transforms/sparsify_gather.cc index f990a165f21..0f95ce50aea 100644 --- a/tensorflow/tools/graph_transforms/sparsify_gather.cc +++ b/tensorflow/tools/graph_transforms/sparsify_gather.cc @@ -340,7 +340,7 @@ Status SparsifyGatherInternal( weights_node.name(), ckpt_reader, (*shapes_and_slices)[weights_node.name()], &weight)); } - // Add both both weight and identity node names. + // Add both weight and identity node names. removed_node_names.push_back(weights_node.name()); removed_node_names.push_back(match.inputs[0].node.name()); for (auto input_node : match.inputs[0].node.input()) { diff --git a/third_party/gpus/check_cuda_libs.py b/third_party/gpus/check_cuda_libs.py index 686d36f5c77..afd6380b0ac 100644 --- a/third_party/gpus/check_cuda_libs.py +++ b/third_party/gpus/check_cuda_libs.py @@ -14,7 +14,7 @@ # ============================================================================== """Verifies that a list of libraries is installed on the system. -Takes a a list of arguments with every two subsequent arguments being a logical +Takes a list of arguments with every two subsequent arguments being a logical tuple of (path, check_soname). The path to the library and either True or False to indicate whether to check the soname field on the shared library.