Fix tensorflow::errors:* calls, which use StrCat instead of StrFormat
PiperOrigin-RevId: 315851936 Change-Id: Id79922d2af7d57021d39747cd6cb6872cb428990
This commit is contained in:
parent
1c064ab760
commit
236d73ad43
tensorflow/core/kernels
@ -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:
|
||||
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user