Skip to content

Conversation

@QiJune
Copy link
Member

@QiJune QiJune commented Oct 18, 2017

No description provided.

@QiJune QiJune changed the title Sparse Kernel for Lookup Grad Operator Sparse Kernel for Lookup Table Grad Operator Oct 18, 2017
return true;
}

const Variable* InputVar(const std::string& name) const {
Copy link
Member

@jacquesqiao jacquesqiao Oct 19, 2017

Choose a reason for hiding this comment

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

why should add two special interfaces

Copy link
Member Author

Choose a reason for hiding this comment

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

@jacquesqiao Since we will set var type in compile-time. And our programDesc will pass to Executor to create variable. So we should set variable in Executor. Like GetMutable<Tensor>/GetMutable<SelectedRows>/GetMutable<LoDTensor>.
At run-time, we can just get tensor to set dims and get dims.
Currently, we do not implement variable type inference in Executor. And variable type is set to LoDTensor by default at run-time infershape stage.
I add these two interfaces to get a variable at run-time infershape stage and set variable type manaully. This will be fixed if our whole compile-time framework is done.

@QiJune QiJune closed this Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants