Skip to content

Fix typos #1999

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -163,7 +163,7 @@ TEST_F(GetModelStatusImplTest, SingleVersionSuccess) {
model_spec->set_name(kTestModelName);
model_spec->mutable_version()->set_value(kTestModelVersion1);

// If model version is managed by ServerCore, succesfully get model status.
// If model version is managed by ServerCore, successfully get model status.
TF_EXPECT_OK(
GetModelStatusImpl::GetModelStatus(GetServerCore(), request, &response));
EXPECT_EQ(1, response.model_version_status_size());
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/oss_or_google.bzl
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/servables/tensorflow/classifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,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 ",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/servables/tensorflow/classifier_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ TEST_P(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_));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ TYPED_TEST_P(MultiInferenceTest, EvaluateDuplicateSignaturesTest) {
"Duplicate evaluation of signature: regress_x_to_y");
}

TYPED_TEST_P(MultiInferenceTest, UsupportedSignatureTypeTest) {
TYPED_TEST_P(MultiInferenceTest, UnsupportedSignatureTypeTest) {
MultiInferenceRequest request;
AddInput({{"x", 2}}, &request);
PopulateTask("serving_default", kPredictMethodName, -1, request.add_tasks());
Expand Down Expand Up @@ -349,7 +349,7 @@ TYPED_TEST_P(MultiInferenceTest, ThreadPoolOptions) {
REGISTER_TYPED_TEST_SUITE_P(
MultiInferenceTest, MissingInputTest, UndefinedSignatureTest,
InconsistentModelSpecsInRequestTest, EvaluateDuplicateSignaturesTest,
UsupportedSignatureTypeTest, ValidSingleSignatureTest,
UnsupportedSignatureTypeTest, ValidSingleSignatureTest,
MultipleValidRegressSignaturesTest, RegressAndClassifySignaturesTest,
ModelSpecOverride, ThreadPoolOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ TYPED_TEST_P(MultiInferenceTest, EvaluateDuplicateSignaturesTest) {
"Duplicate evaluation of signature: regress_x_to_y");
}

TYPED_TEST_P(MultiInferenceTest, UsupportedSignatureTypeTest) {
TYPED_TEST_P(MultiInferenceTest, UnsupportedSignatureTypeTest) {
std::unique_ptr<TensorFlowMultiInferenceRunner> inference_runner;
TF_ASSERT_OK(this->GetInferenceRunner(&inference_runner));

Expand Down Expand Up @@ -420,7 +420,7 @@ TYPED_TEST_P(MultiInferenceTest, ThreadPoolOptions) {
REGISTER_TYPED_TEST_SUITE_P(
MultiInferenceTest, MissingInputTest, UndefinedSignatureTest,
InconsistentModelSpecsInRequestTest, EvaluateDuplicateSignaturesTest,
UsupportedSignatureTypeTest, ValidSingleSignatureTest,
UnsupportedSignatureTypeTest, ValidSingleSignatureTest,
MultipleValidRegressSignaturesTest, RegressAndClassifySignaturesTest,
ThreadPoolOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Status RunSavedModelWarmup(
++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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ TEST_F(SavedModelBundleWarmupUtilTest, 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_F(SavedModelBundleWarmupUtilTest, UnparsableRecord) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ TEST(FileSystemStoragePathSourceTest, ServableVersionDirRenamed) {
.PollFileSystemAndInvokeCallback());

// Deny version 2 and 5 by renaming corresponding directories.
// Deny version 8 by removing the directory alltogether.
// Deny 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.denied")));
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/tensorflow_version.bzl
Original file line number Diff line number Diff line change
@@ -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")
Expand Down