From f018fa37bee15d59bee4925c43d84103f52a9adb Mon Sep 17 00:00:00 2001 From: yao_yf Date: Tue, 15 Dec 2020 09:10:47 +0800 Subject: [PATCH] wide_and_deep_dropout_do_mask_remove --- model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py b/model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py index 0b0d5f057bf..b0de6c14f36 100644 --- a/model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py +++ b/model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py @@ -211,7 +211,6 @@ class WideDeepModel(nn.Cell): if config.deep_table_slice_mode == "column_slice": self.deep_embeddinglookup = nn.EmbeddingLookup(self.vocab_size, self.emb_dim, target=target, slice_mode=nn.EmbeddingLookup.TABLE_COLUMN_SLICE) - self.dense_layer_1.dropout.dropout_do_mask.shard(((1, get_group_size()),)) self.dense_layer_1.dropout.dropout.shard(((1, get_group_size()),)) self.dense_layer_1.matmul.shard(((1, get_group_size()), (get_group_size(), 1))) self.dense_layer_1.matmul.add_prim_attr("field_size", self.field_size) @@ -233,7 +232,6 @@ class WideDeepModel(nn.Cell): self.deep_mul.shard(((1, get_group_size(), 1), (1, get_group_size(), 1))) self.wide_mul.shard(((1, get_group_size(), 1), (1, get_group_size(), 1))) self.reduce_sum.shard(((1, get_group_size(), 1),)) - self.dense_layer_1.dropout.dropout_do_mask.shard(((1, get_group_size()),)) self.dense_layer_1.dropout.dropout.shard(((1, get_group_size()),)) self.dense_layer_1.matmul.shard(((1, get_group_size()), (get_group_size(), 1))) self.embedding_table = self.deep_embeddinglookup.embedding_table