提交 bade5798 编写于 作者: Y Yu Yang

Wait code

上级 4a330094
......@@ -193,7 +193,8 @@ struct FetchOpHandle : public OpHandle {
void Run() override {
for (auto *input : inputs_) {
input->generated_op_->Wait(nullptr);
auto *var = static_cast<VarHandle *>(input);
var->generated_op_->Wait(this->dev_ctx_[var->place_]);
}
tensors_.resize(inputs_.size());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册