Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic impl of operator #2667

Closed
wants to merge 27 commits into from

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Jun 29, 2017

merged design to this pr.
Please review Design doc for operator attribute first

class AttrbuteMap {
public:
template <typename T>
Error get(const std::string key, T* attr) const;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should not use Error.


input_vars.reserve(inputs_.size());
for (auto& input : inputs_) {
input_vars.push_back(scope->getOrCreateVariable(input));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe scope usage should be updated

Since we do not merge all PR about op together, so we use operator.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants