diff --git a/tf_adapter/kernels/host_queue_dataset_op.cc b/tf_adapter/kernels/host_queue_dataset_op.cc index 71c2ac41f5eedc2028d19cf8739b67d2d8658769..16a442699d12111583d721e5299bc95cb742bfa0 100644 --- a/tf_adapter/kernels/host_queue_dataset_op.cc +++ b/tf_adapter/kernels/host_queue_dataset_op.cc @@ -269,8 +269,7 @@ class HostQueueDatasetOp : public DatasetOpKernel { std::shared_ptr(const_cast(tensor.tensor_data().data()), [](void *elem) {}); } else if (tensor.dtype() == DT_STRING) { if (tensor.dims() != 0) { - LOG(ERROR) << "input of DT_STRING type should be scalar," - " current dims:" + LOG(ERROR) << "Input of DT_STRING type should be scalar, current dims:" << tensor.dims(); mutex_lock lck(mu_); cancelled_ = true;