diff --git a/paddle/framework/block_desc.h b/paddle/framework/block_desc.h index 3437e89923da8de79eeaa88d0466cf7eb0b5926d..c25a9b6e0b715827db39ba24e1e22c92f6127f2c 100644 --- a/paddle/framework/block_desc.h +++ b/paddle/framework/block_desc.h @@ -48,7 +48,7 @@ class BlockDescBind { int32_t Parent() const { return desc_->parent_idx(); } - VarDescBind *NewVar(const std::string &name_bytes); + VarDescBind *GetOrCreateVar(const std::string &name_bytes); VarDescBind *Var(const std::string &name_bytes) const;