diff options
author | 2018-05-31 16:15:45 -0700 | |
---|---|---|
committer | 2018-05-31 16:21:49 -0700 | |
commit | 3e3dd647d17b5136d1afb8e4b5c1f39986684768 (patch) | |
tree | be0a7c2b4a883d9017567e3e6038b8e46ea30c0d /tensorflow/core/kernels/data/scan_dataset_op.cc | |
parent | cd37c5277fa7cf1bb1e1c7ace3922109f6fc7fc2 (diff) |
[tf.data] Mark DebugString() as const.
By marking DebugString() as const we can make some error messages more descriptive. Because DatasetIterator marks the return value of the dataset() function const, DebugString() cannot be called.
PiperOrigin-RevId: 198796894
Diffstat (limited to 'tensorflow/core/kernels/data/scan_dataset_op.cc')
-rw-r--r-- | tensorflow/core/kernels/data/scan_dataset_op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/data/scan_dataset_op.cc b/tensorflow/core/kernels/data/scan_dataset_op.cc index 972ed8fb00..a3b20016a8 100644 --- a/tensorflow/core/kernels/data/scan_dataset_op.cc +++ b/tensorflow/core/kernels/data/scan_dataset_op.cc @@ -103,7 +103,7 @@ class ScanDatasetOp : public UnaryDatasetOpKernel { return output_shapes_; } - string DebugString() override { return "ScanDatasetOp::Dataset"; } + string DebugString() const override { return "ScanDatasetOp::Dataset"; } protected: Status AsGraphDefInternal(OpKernelContext* ctx, DatasetGraphDefBuilder* b, |