Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Add var->value() feature #18

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

kexinzhao
Copy link
Collaborator

fix #11


// TODO(tonyyang-svail): No need to expose name
std::string Name() const { return desc_.Name(); }

framework::Variable *Var() { return &var_; }
const framework::Variable& Var() const { return var_; }
framework::Variable* MutableVar() { return &var_; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@kexinzhao kexinzhao merged commit a3ce862 into PaddlePaddle:develop Jun 19, 2018
@kexinzhao kexinzhao deleted the tape_eval_value branch June 19, 2018 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementing var->value() in tape
2 participants