Fixed a couple of typos (#16731)
authorMandarJKulkarni <33712629+MandarJKulkarni@users.noreply.github.com>
Sat, 3 Feb 2018 23:22:22 +0000 (04:52 +0530)
committerShanqing Cai <cais@google.com>
Sat, 3 Feb 2018 23:22:22 +0000 (18:22 -0500)
Fixed a couple of typos

tensorflow/c/c_api.cc

index 3c7f041..b7986ec 100644 (file)
@@ -195,10 +195,10 @@ TF_Tensor* TF_NewTensor(TF_DataType dtype, const int64_t* dims, int num_dims,
       reinterpret_cast<intptr_t>(data) % EIGEN_MAX_ALIGN_BYTES != 0) {
     // TF_STRING and TF_RESOURCE tensors have a different representation in
     // TF_Tensor than they do in tensorflow::Tensor. So a copy here is a waste
-    // (any alignement requirements will be taken care of by TF_TensorToTensor
+    // (any alignment requirements will be taken care of by TF_TensorToTensor
     // and TF_TensorFromTensor).
     //
-    // Other types have the same represntation, so copy only if it is safe to do
+    // Other types have the same representation, so copy only if it is safe to do
     // so.
     buf->data_ = allocate_tensor("TF_NewTensor", len);
     std::memcpy(buf->data_, data, len);