diff --git a/tensorflow_serving/model_servers/get_model_status_impl_test.cc b/tensorflow_serving/model_servers/get_model_status_impl_test.cc index 9002a8526c4..1722a3cee99 100644 --- a/tensorflow_serving/model_servers/get_model_status_impl_test.cc +++ b/tensorflow_serving/model_servers/get_model_status_impl_test.cc @@ -136,7 +136,7 @@ TEST_F(GetModelStatusImplTest, AllVersionsSuccess) { ModelSpec* model_spec = request.mutable_model_spec(); model_spec->set_name(kTestModelName); - // If two versions of model are managed by ServerCore, succesfully get model + // If two versions of model are managed by ServerCore, successfully get model // status for both versions of the model. TF_EXPECT_OK( GetModelStatusImpl::GetModelStatus(GetServerCore(), request, &response)); diff --git a/tensorflow_serving/model_servers/http_rest_api_handler.h b/tensorflow_serving/model_servers/http_rest_api_handler.h index 442d3bd9a34..b812cf05032 100644 --- a/tensorflow_serving/model_servers/http_rest_api_handler.h +++ b/tensorflow_serving/model_servers/http_rest_api_handler.h @@ -67,7 +67,7 @@ class HttpRestApiHandler { // HTTP server, so incoming requests can be forwarded to this handler. static const char* const kPathRegex; - // API calls are configured to timeout after `run_optons.timeout_in_ms`. + // API calls are configured to timeout after `run_options.timeout_in_ms`. // `core` is not owned and is expected to outlive HttpRestApiHandler // instance. HttpRestApiHandler(const RunOptions& run_options, ServerCore* core); diff --git a/tensorflow_serving/model_servers/server_core_test.cc b/tensorflow_serving/model_servers/server_core_test.cc index 41c5e516ce4..84d4c648b15 100644 --- a/tensorflow_serving/model_servers/server_core_test.cc +++ b/tensorflow_serving/model_servers/server_core_test.cc @@ -843,7 +843,7 @@ TEST_P(ServerCoreTest, AssignExistingLabelToUnavailableVersion) { test_util::kTestModelLargerVersion; TF_ASSERT_OK(server_core->ReloadConfig(two_version_config)); - // Attempt to assign an exsiting label to a different version that isn't + // Attempt to assign an existing label to a different version that isn't // one of the loaded ones. ASSERT_EQ(1, two_version_config.model_config_list().config().size()); model_config = diff --git a/tensorflow_serving/oss_or_google.bzl b/tensorflow_serving/oss_or_google.bzl index 7e348f17266..2a88fea9959 100644 --- a/tensorflow_serving/oss_or_google.bzl +++ b/tensorflow_serving/oss_or_google.bzl @@ -1,5 +1,5 @@ """ -Module for build utilities to distiguish different build environment. +Module for build utilities to distinguish different build environment. """ # Whether the compilation environment is open source environment. diff --git a/tensorflow_serving/servables/tensorflow/classifier.cc b/tensorflow_serving/servables/tensorflow/classifier.cc index 25999d30e30..723d78b86ce 100644 --- a/tensorflow_serving/servables/tensorflow/classifier.cc +++ b/tensorflow_serving/servables/tensorflow/classifier.cc @@ -261,7 +261,7 @@ Status PostProcessClassificationResult( // Tensor. int num_classes = 0; if (classes && scores) { - // If we have both Tensors they should agree in the second dimmension. + // If we have both Tensors they should agree in the second dimension. if (classes->dim_size(1) != scores->dim_size(1)) { return errors::InvalidArgument( "Tensors class and score should match in dim_size(1). Got ", diff --git a/tensorflow_serving/servables/tensorflow/classifier_test.cc b/tensorflow_serving/servables/tensorflow/classifier_test.cc index a8d59133350..d9e9cca4935 100644 --- a/tensorflow_serving/servables/tensorflow/classifier_test.cc +++ b/tensorflow_serving/servables/tensorflow/classifier_test.cc @@ -226,15 +226,15 @@ void AddNamedSignatureToSavedModelBundle( TensorInfo scores_tensor_info; scores_tensor_info.set_name(output_scores_tensor_name); (*sig_def.mutable_outputs())["scores"] = scores_tensor_info; - string methond_name = "tensorflow/serving/regress"; + string method_name = "tensorflow/serving/regress"; if (is_classification) { TensorInfo class_tensor_info; class_tensor_info.set_name(kClassTensor); (*sig_def.mutable_outputs())["classes"] = class_tensor_info; - methond_name = "tensorflow/serving/classify"; + method_name = "tensorflow/serving/classify"; } - sig_def.set_method_name(methond_name); + sig_def.set_method_name(method_name); (*signature_defs)[signature_name] = sig_def; } @@ -379,7 +379,7 @@ TEST_F(ClassifierTest, ExampleListWithContext) { request_.mutable_input()->mutable_example_list_with_context(); // Context gets copied to each example. *list_and_context->mutable_context() = example({{"dos", 2}, {"uno", 1}}); - // Add empty examples to recieve the context. + // Add empty examples to receive the context. list_and_context->add_examples(); list_and_context->add_examples(); TF_ASSERT_OK(classifier_->Classify(request_, &result_)); diff --git a/tensorflow_serving/servables/tensorflow/multi_inference_helper_test.cc b/tensorflow_serving/servables/tensorflow/multi_inference_helper_test.cc index 121e540dd8c..c55e5ccd56d 100644 --- a/tensorflow_serving/servables/tensorflow/multi_inference_helper_test.cc +++ b/tensorflow_serving/servables/tensorflow/multi_inference_helper_test.cc @@ -178,7 +178,7 @@ TEST_F(MultiInferenceTest, EvaluateDuplicateSignaturesTest) { "Duplicate evaluation of signature: regress_x_to_y"); } -TEST_F(MultiInferenceTest, UsupportedSignatureTypeTest) { +TEST_F(MultiInferenceTest, UnsupportedSignatureTypeTest) { MultiInferenceRequest request; AddInput({{"x", 2}}, &request); PopulateTask("serving_default", kPredictMethodName, -1, request.add_tasks()); diff --git a/tensorflow_serving/servables/tensorflow/multi_inference_test.cc b/tensorflow_serving/servables/tensorflow/multi_inference_test.cc index 81adeaecbd9..25ffcca1a66 100644 --- a/tensorflow_serving/servables/tensorflow/multi_inference_test.cc +++ b/tensorflow_serving/servables/tensorflow/multi_inference_test.cc @@ -230,7 +230,7 @@ TEST_F(MultiInferenceTest, EvaluateDuplicateSignaturesTest) { "Duplicate evaluation of signature: regress_x_to_y"); } -TEST_F(MultiInferenceTest, UsupportedSignatureTypeTest) { +TEST_F(MultiInferenceTest, UnsupportedSignatureTypeTest) { std::unique_ptr inference_runner; TF_ASSERT_OK(GetInferenceRunner(&inference_runner)); diff --git a/tensorflow_serving/servables/tensorflow/predict_impl_test.cc b/tensorflow_serving/servables/tensorflow/predict_impl_test.cc index 97c95e62a7d..00f38aa8d2a 100644 --- a/tensorflow_serving/servables/tensorflow/predict_impl_test.cc +++ b/tensorflow_serving/servables/tensorflow/predict_impl_test.cc @@ -314,7 +314,7 @@ TEST_F(PredictImplTest, PredictionWithNamedClassificationSignature) { // customized signatures. It calls get_counter, incr_counter, // reset_counter, incr_counter, and incr_counter_by(3) in order. // -// *Notes*: These signatures are stateful and over-simplied only to demonstrate +// *Notes*: These signatures are stateful and over-simplified only to demonstrate // Predict calls with only inputs or outputs. State is not supported in // TensorFlow Serving on most scalable or production hosting environments. TEST_F(PredictImplTest, PredictionWithCustomizedSignatures) { diff --git a/tensorflow_serving/servables/tensorflow/predict_util_test.cc b/tensorflow_serving/servables/tensorflow/predict_util_test.cc index a819dea266f..a9a733b16bc 100644 --- a/tensorflow_serving/servables/tensorflow/predict_util_test.cc +++ b/tensorflow_serving/servables/tensorflow/predict_util_test.cc @@ -351,7 +351,7 @@ TEST_F(PredictImplTest, PredictionWithNamedClassificationSignature) { // customized signatures. It calls get_counter, incr_counter, // reset_counter, incr_counter, and incr_counter_by(3) in order. // -// *Notes*: These signatures are stateful and over-simplied only to demonstrate +// *Notes*: These signatures are stateful and over-simplified only to demonstrate // Predict calls with only inputs or outputs. State is not supported in // TensorFlow Serving on most scalable or production hosting environments. TEST_F(PredictImplTest, PredictionWithCustomizedSignatures) { diff --git a/tensorflow_serving/servables/tensorflow/regressor_test.cc b/tensorflow_serving/servables/tensorflow/regressor_test.cc index db661d89533..796576b77d7 100644 --- a/tensorflow_serving/servables/tensorflow/regressor_test.cc +++ b/tensorflow_serving/servables/tensorflow/regressor_test.cc @@ -181,7 +181,7 @@ void AddNamedSignatureToSavedModelBundle( tensorflow::MetaGraphDef* meta_graph_def) { auto* signature_defs = meta_graph_def->mutable_signature_def(); SignatureDef sig_def; - string methond_name; + string method_name; if (is_regression) { TensorInfo input_tensor_info; input_tensor_info.set_name(input_tensor_name); @@ -189,7 +189,7 @@ void AddNamedSignatureToSavedModelBundle( TensorInfo scores_tensor_info; scores_tensor_info.set_name(output_scores_tensor_name); (*sig_def.mutable_outputs())["outputs"] = scores_tensor_info; - methond_name = "tensorflow/serving/regress"; + method_name = "tensorflow/serving/regress"; } else { TensorInfo input_tensor_info; input_tensor_info.set_name(input_tensor_name); @@ -197,9 +197,9 @@ void AddNamedSignatureToSavedModelBundle( TensorInfo class_tensor_info; class_tensor_info.set_name(kOutputPlusOneTensor); (*sig_def.mutable_outputs())["classes"] = class_tensor_info; - methond_name = "tensorflow/serving/classify"; + method_name = "tensorflow/serving/classify"; } - sig_def.set_method_name(methond_name); + sig_def.set_method_name(method_name); (*signature_defs)[signature_name] = sig_def; } diff --git a/tensorflow_serving/servables/tensorflow/saved_model_warmup.cc b/tensorflow_serving/servables/tensorflow/saved_model_warmup.cc index 28a8d871cf3..9fbba8681d1 100644 --- a/tensorflow_serving/servables/tensorflow/saved_model_warmup.cc +++ b/tensorflow_serving/servables/tensorflow/saved_model_warmup.cc @@ -142,7 +142,7 @@ Status RunSavedModelWarmup(const ModelWarmupOptions& model_warmup_options, ++num_warmup_records; if (num_warmup_records > WarmupConsts::kMaxNumRecords) { return errors::InvalidArgument( - "Number of warmup records exceeeds the maximum (", + "Number of warmup records exceeds the maximum (", WarmupConsts::kMaxNumRecords, ") at ", warmup_path); } status = tf_record_file_reader->ReadRecord(&record); diff --git a/tensorflow_serving/servables/tensorflow/saved_model_warmup_test.cc b/tensorflow_serving/servables/tensorflow/saved_model_warmup_test.cc index b92f5cbb4ee..18d70078442 100644 --- a/tensorflow_serving/servables/tensorflow/saved_model_warmup_test.cc +++ b/tensorflow_serving/servables/tensorflow/saved_model_warmup_test.cc @@ -375,7 +375,7 @@ TEST(SavedModelBundleWarmupTest, TooManyWarmupRecords) { EXPECT_EQ(::tensorflow::error::INVALID_ARGUMENT, status.code()) << status; EXPECT_THAT( status.ToString(), - ::testing::HasSubstr("Number of warmup records exceeeds the maximum")); + ::testing::HasSubstr("Number of warmup records exceeds the maximum")); } TEST(SavedModelBundleWarmupTest, UnparsableRecord) { diff --git a/tensorflow_serving/servables/tensorflow/testdata/export_counter.py b/tensorflow_serving/servables/tensorflow/testdata/export_counter.py index 7a304cc1078..3720fc0cfd9 100644 --- a/tensorflow_serving/servables/tensorflow/testdata/export_counter.py +++ b/tensorflow_serving/servables/tensorflow/testdata/export_counter.py @@ -54,7 +54,7 @@ def export_model(output_dir): Create three signatures: incr_counter, incr_counter_by, reset_counter. - *Notes*: These signatures are stateful and over-simplied only to demonstrate + *Notes*: These signatures are stateful and over-simplified only to demonstrate Predict calls with only inputs or outputs. State is not supported in TensorFlow Serving on most scalable or production hosting environments. diff --git a/tensorflow_serving/session_bundle/oss/session_bundle_util_test.cc b/tensorflow_serving/session_bundle/oss/session_bundle_util_test.cc index 9aa79bcdeab..a0a3c915366 100644 --- a/tensorflow_serving/session_bundle/oss/session_bundle_util_test.cc +++ b/tensorflow_serving/session_bundle/oss/session_bundle_util_test.cc @@ -89,7 +89,7 @@ TEST(SessionBundleTest, LoadSessionBundleOrSavedModelBundleFailureTest) { TEST(SessionBundleTest, LoadSessionBundleFromPathUsingRunOptionsTest) { SessionOptions session_options; RunOptions run_options; - string export_dir = "/exort_dir"; + string export_dir = "/export_dir"; SessionBundle bundle; Status status = session_bundle::LoadSessionBundleFromPathUsingRunOptions( session_options, run_options, export_dir, &bundle); diff --git a/tensorflow_serving/sources/storage_path/file_system_storage_path_source_test.cc b/tensorflow_serving/sources/storage_path/file_system_storage_path_source_test.cc index 7f812a69ff2..0e664527c47 100644 --- a/tensorflow_serving/sources/storage_path/file_system_storage_path_source_test.cc +++ b/tensorflow_serving/sources/storage_path/file_system_storage_path_source_test.cc @@ -671,7 +671,7 @@ TEST(FileSystemStoragePathSourceTest, ServableVersionDirRenamed) { .PollFileSystemAndInvokeCallback()); // Blacklist version 2 and 5 by renaming corresponding directories. - // Blacklist version 8 by removing the directory alltogether. + // Blacklist version 8 by removing the directory altogether. TF_ASSERT_OK(Env::Default()->RenameFile( io::JoinPath(base_path_prefix, "2"), io::JoinPath(base_path_prefix, "2.blacklisted"))); diff --git a/tensorflow_serving/tensorflow_version.bzl b/tensorflow_serving/tensorflow_version.bzl index fdc1d2d1736..6ec6cac3d21 100644 --- a/tensorflow_serving/tensorflow_version.bzl +++ b/tensorflow_serving/tensorflow_version.bzl @@ -1,5 +1,5 @@ """ -Module for build utilities to distiguish different tensorflow versions. +Module for build utilities to distinguish different tensorflow versions. """ load("@org_tensorflow//tensorflow:tensorflow.bzl", "VERSION_MAJOR")