Fix tensorflow::errors:* calls, which use StrCat instead of StrFormat

PiperOrigin-RevId: 315851936
Change-Id: Id79922d2af7d57021d39747cd6cb6872cb428990
This commit is contained in:
A. Unique TensorFlower 2020-06-11 00:55:19 -07:00 committed by TensorFlower Gardener
parent 1c064ab760
commit 236d73ad43
2 changed files with 5 additions and 5 deletions
tensorflow/core/kernels

View File

@ -74,8 +74,8 @@ class WindowDataset : public DatasetBase {
Status AsGraphDefInternal(SerializationContext* ctx,
DatasetGraphDefBuilder* b,
Node** output) const override {
return errors::Unimplemented("%s does not support serialization",
DebugString());
return errors::Unimplemented(DebugString(),
" does not support serialization");
}
private:

View File

@ -113,9 +113,9 @@ DoHandleReverseCase(OpKernelContext* context, const Tensor& input,
static_assert(sizeof(complex128) == 16, "complex128 must be 16 bytes");
ReverseRows<complex128, NUM_CHANNELS>(context, input, result);
} else {
context->CtxFailure(
errors::InvalidArgument("%s has unexpected size of %d bytes",
DataTypeString(input.dtype()), sizeof(T)));
context->CtxFailure(errors::InvalidArgument(DataTypeString(input.dtype()),
" has unexpected size of ",
sizeof(T), " bytes"));
}
}