提交 7040f4df 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Change v2 session bundle compression method to match v1.

Change: 137961557
上级 1e8f618d
......@@ -343,7 +343,11 @@ Status BundleWriter::Finish() {
status_ = env_->NewWritableFile(MetaFilename(prefix_), &file);
if (!status_.ok()) return status_;
{
table::TableBuilder builder(table::Options(), file.get());
// N.B.: the default use of Snappy compression may not be supported on all
// platforms (e.g. Android). The metadata file is small, so this is fine.
table::Options options;
options.compression = table::kNoCompression;
table::TableBuilder builder(options, file.get());
// Header entry.
BundleHeaderProto header;
header.set_num_shards(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册