From 5d8f28139703cb80686def3a6993e4df5dec9008 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Sat, 29 Dec 2018 11:10:36 +0800 Subject: [PATCH] restore the memory mode test=develop --- paddle/fluid/operators/load_combine_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/load_combine_op.cc b/paddle/fluid/operators/load_combine_op.cc index c03249644ad..691c5cc1a1d 100644 --- a/paddle/fluid/operators/load_combine_op.cc +++ b/paddle/fluid/operators/load_combine_op.cc @@ -44,7 +44,7 @@ class LoadCombineOp : public framework::OperatorBase { LoadParamsFromBuffer(scope, place, &fin, load_as_fp16, out_var_names); } else { PADDLE_ENFORCE(!filename.empty(), "Cannot load file from memory"); - std::stringstream fin(filename, std::ios::binary); + std::stringstream fin(filename); LoadParamsFromBuffer(scope, place, &fin, load_as_fp16, out_var_names); } } -- GitLab