Add the kSnappyReaderInputBufferSizeBytes and kSnappyReaderoutputBufferSizeBytes defined in .h file to the .cc file as well. Currently build in debug mode will fail because .cc file can not find consts defined in .h file in build time.

PiperOrigin-RevId: 299412527
Change-Id: I933b9d9f56c0626f7f4134a2afc483dee159daf9
This commit is contained in:
A. Unique TensorFlower 2020-03-06 12:31:13 -08:00 committed by TensorFlower Gardener
parent 6f795b7539
commit 5db7460fa8

View File

@ -36,6 +36,9 @@ namespace tensorflow {
namespace data {
namespace snapshot_util {
/* static */ constexpr const int64 Reader::kSnappyReaderInputBufferSizeBytes;
/* static */ constexpr const int64 Reader::kSnappyReaderOutputBufferSizeBytes;
Writer::Writer(WritableFile* dest, const string& compression_type, int version,
const DataTypeVector& dtypes)
: dest_(dest), compression_type_(compression_type), version_(version) {