-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Feature/dynamic recurrent op forward test #4729
Feature/dynamic recurrent op forward test #4729
Conversation
…/dynamic-recurrent-op
…/dynamic-recurrent-op
…/dynamic-recurrent-op
…ddle into feature/dynamic-recurrent-op
…/dynamic-recurrent-op-forward-test
…/dynamic-recurrent-op
…/dynamic-recurrent-op-forward-test
…/dynamic-recurrent-op
…/dynamic-recurrent-op
…/dynamic-recurrent-op
…/dynamic-recurrent-op-forward-test
…rrent-op-forward-test
…/dynamic-recurrent-op-forward-test
…/dynamic-recurrent-op-forward-test
…/dynamic-recurrent-op-forward-test
auto slice = tensor->Slice<T>(seq_id, seq_id + 1); | ||
auto boot_slice = | ||
boot_state.Slice<T>(metas[seq_id].ori_idx, metas[seq_id].ori_idx + 1); | ||
// slice.CopyFrom<typename T>(boot_slice, dst_place); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm this line
print 'output', np.array(output).shape | ||
|
||
def create_global_variables(self): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm the blank line
x_tensor = create_tensor(self.scope, "x", | ||
[self.num_sents, self.input_dim], x) | ||
x_tensor.set_lod(self.lod_py) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fixs: #4561