diff options
Diffstat (limited to 'tensorflow/core/platform/file_system.h')
-rw-r--r-- | tensorflow/core/platform/file_system.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tensorflow/core/platform/file_system.h b/tensorflow/core/platform/file_system.h index 077b1d79cf..30059dc02e 100644 --- a/tensorflow/core/platform/file_system.h +++ b/tensorflow/core/platform/file_system.h @@ -24,6 +24,7 @@ limitations under the License. #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/lib/core/stringpiece.h" +#include "tensorflow/core/platform/cord.h" #include "tensorflow/core/platform/file_statistics.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/platform.h" @@ -252,7 +253,12 @@ class WritableFile { virtual ~WritableFile(); /// \brief Append 'data' to the file. - virtual Status Append(const StringPiece& data) = 0; + virtual Status Append(StringPiece data) = 0; + + // \brief Append 'data' to the file. + virtual Status Append(const absl::Cord& cord) { + return errors::Unimplemented("Append(absl::Cord) is not implemented"); + } /// \brief Close the file. /// |