diff --git a/paddle/fluid/operators/load_op.cc b/paddle/fluid/operators/load_op.cc index dd24dacf42e61c4bd3ed32f1bcbbe554117147c0..e75fc4d6741719a917f97d0bfdfcb4aef6910c09 100644 --- a/paddle/fluid/operators/load_op.cc +++ b/paddle/fluid/operators/load_op.cc @@ -71,7 +71,7 @@ class LoadOp : public framework::OperatorBase { auto *tensor = var->GetMutable(); - DeserializeFromStream(fin, tensor, *dev_ctx); + DeserializeFromStream(fin, tensor, dev_ctx); auto load_as_fp16 = Attr("load_as_fp16"); auto in_dtype = framework::ToDataType(tensor->type());