From 5d20954ac4fb551897be710c643737931e3cb7c3 Mon Sep 17 00:00:00 2001 From: luotao1 Date: Tue, 12 Mar 2019 14:18:32 +0800 Subject: [PATCH] add runtime shape for fuse_emb_seq_pool_grad test=develop --- paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h b/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h index 5e2e336e711..4651c2b2ba8 100644 --- a/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h +++ b/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h @@ -121,6 +121,8 @@ class FusedEmbeddingSeqPoolGradKernel : public framework::OpKernel { auto *ids = context.Input("Ids"); auto *d_output = context.Input(framework::GradVarName("Out")); auto *d_table = context.Output(framework::GradVarName("W")); + // runtime shape + d_table->set_height(table_dim[0]); auto *ids_data = ids->data(); int64_t ids_num = ids->numel(); -- GitLab