Skip to content

Commit 33cd434

Browse files
Merge pull request tensorflow#9844 from chris-chris/patch/170511-misspell
Fix misspells on c++ codes.
2 parents dbb78c7 + 51caa2b commit 33cd434

File tree

20 files changed

+23
-23
lines changed

20 files changed

+23
-23
lines changed

tensorflow/cc/framework/gradients_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ TEST_F(GradientsTest, StackUnstack_StopBackprop) {
260260
}
261261

262262
TEST_F(GradientsTest, DependentGradOutputs) {
263-
// Tests that dependant gradients (in this case the gradients w.r.t to the
263+
// Tests that dependent gradients (in this case the gradients w.r.t to the
264264
// output and one input of MatMul) are computed properly.
265265

266266
// Create two chained MatMul ops.

tensorflow/cc/saved_model/loader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ auto* load_attempt_count = monitoring::Counter<2>::New(
3636
"status");
3737
auto* load_latency = monitoring::Counter<1>::New(
3838
"/tensorflow/cc/saved_model/load_latency",
39-
"Latency in microseconds for SavedModels that were succesfully loaded.",
39+
"Latency in microseconds for SavedModels that were successfully loaded.",
4040
"model_path");
4141
constexpr char kLoadAttemptFail[] = "fail";
4242
constexpr char kLoadAttemptSuccess[] = "success";

tensorflow/compiler/xla/service/gpu/elemental_ir_emitter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitMathCall(
113113
tensorflow::gtl::ArraySlice<llvm::Value*> operands,
114114
tensorflow::gtl::ArraySlice<PrimitiveType> input_types,
115115
PrimitiveType output_type) const {
116-
// Binary math functions tranform are of type [T] -> T.
116+
// Binary math functions transform are of type [T] -> T.
117117
for (PrimitiveType input_type : input_types) {
118118
if (output_type != input_type) {
119119
return Unimplemented("Input type ≠ output type: %s ≠ %s",

tensorflow/compiler/xla/service/gpu/ir_emitter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Status IrEmitter::HandleDot(HloInstruction* dot,
399399
llvm::Type* accum_type = target_array.GetElementLlvmType();
400400
llvm::Value* accum_address = llvm_ir::EmitAllocaAtFunctionEntry(
401401
accum_type, // The pointee type of the alloca instruction.
402-
"accum_address", // The name of the alloca instuction.
402+
"accum_address", // The name of the alloca instruction.
403403
&ir_builder_);
404404

405405
// Initialize the accumulator in the preheader to zero.

tensorflow/compiler/xla/service/gpu/llvm_gpu_backend/gpu_backend_lib.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ StatusOr<string> CompileModuleToPtx(llvm::Module* module,
396396

397397
// The LLVM IR verifier performs sanity checking on the IR. This helps
398398
// discover problems and report them in a meaningful manner, rather than let
399-
// later passes report obscure assertions becasue of unfulfilled invariants.
399+
// later passes report obscure assertions because of unfulfilled invariants.
400400
module_passes.add(llvm::createVerifierPass());
401401

402402
// Create the function-level pass manager. It needs data layout information

tensorflow/compiler/xla/service/gpu/while_transformer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class MatcherBase {
168168
virtual ~MatcherBase() {}
169169

170170
// Attempts to match each ExprTree in 'expr_trees_'.
171-
// Returns OK on the first succesful match, error status otherwise.
171+
// Returns OK on the first successful match, error status otherwise.
172172
virtual tensorflow::Status Run() {
173173
Status status;
174174
for (const ExprTree& expr_tree : expr_trees_) {

tensorflow/compiler/xla/service/layout_assignment.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ StatusOr<Layout> InferArrayLayout(
10411041
*first_buffer_layout)) {
10421042
// The points-to set is ambiguous for this index and the different source
10431043
// buffers have different layouts. This case is possible in valid XLA
1044-
// computations because we do not propagate BufferLayoutConstaints to all
1044+
// computations because we do not propagate BufferLayoutConstraints to all
10451045
// LogicalBuffers which may alias the constrained LogicalBuffer at some
10461046
// point in the computation.
10471047
return FailedPrecondition(
@@ -1254,7 +1254,7 @@ Status LayoutAssignment::RunOnComputation(
12541254
TF_ASSIGN_OR_RETURN(auto points_to_analysis,
12551255
TuplePointsToAnalysis::Run(computation->parent()));
12561256

1257-
// Construct LayoutConstaints with all layout constraints of the computation.
1257+
// Construct LayoutConstraints with all layout constraints of the computation.
12581258
LayoutConstraints constraints(*points_to_analysis, computation);
12591259

12601260
// Add constraints required for correctness on all backends (eg, entry

tensorflow/compiler/xla/tests/deallocation_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ TEST_F(DeallocationTest, DeallocateScalar) {
5252
builder.ConstantR0<float>(42.0);
5353
auto global_data = ExecuteAndCheckTransfer(&builder, {});
5454

55-
// A result can be transfered an arbitrary number of times. Add an extra
55+
// A result can be transferred an arbitrary number of times. Add an extra
5656
// transfer here so we're not just testing that a second call to Transfer
5757
// fails.
5858
ASSERT_IS_OK(client_->Transfer(*global_data).status());

tensorflow/compiler/xla/tests/literal_test_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ class NearComparator {
314314

315315
private:
316316
// EXPECTs that the two given scalar values are within the error bound. Keeps
317-
// track of how many mismatches have occured to keep the size of the output
317+
// track of how many mismatches have occurred to keep the size of the output
318318
// manageable.
319319
template <typename NativeT>
320320
bool ExpectValuesNear(NativeT expected, NativeT actual) {

tensorflow/compiler/xla/tests/reduce_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace {
6161
class ReduceTest : public ClientLibraryTestBase {
6262
protected:
6363
ReduceTest() {
64-
// Implementation note: layed out z >> y >> x by default.
64+
// Implementation note: laid out z >> y >> x by default.
6565
// clang-format off
6666
literal_2d_ = LiteralUtil::CreateR2<float>({
6767
// x0 x1 x2

0 commit comments

Comments
 (0)