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);