提交 00a44a3f 编写于 作者: Y yaoxuefeng

delete is_sparse option

上级 61fc88ae
......@@ -38,7 +38,6 @@ hyper_parameters:
learning_rate: 0.0001
sparse_feature_number: 1086460
sparse_feature_dim: 9
is_sparse: False
deep_input_size: 50
use_inner_product: True
num_field: 39
......
......@@ -46,8 +46,6 @@ class Model(ModelBase):
"hyper_parameters.sparse_feature_number", None)
self.sparse_feature_dim = envs.get_global_env(
"hyper_parameters.sparse_feature_dim", None)
self.is_sparse = envs.get_global_env("hyper_parameters.is_sparse",
False)
self.deep_input_size = envs.get_global_env(
"hyper_parameters.deep_input_size", 50)
self.use_inner_product = envs.get_global_env(
......@@ -75,7 +73,7 @@ class Model(ModelBase):
first_weights_re = fluid.embedding(
input=feat_idx,
is_sparse=self.is_sparse,
is_sparse=True,
is_distributed=self.is_distributed,
dtype='float32',
size=[self.sparse_feature_number + 1, 1],
......@@ -94,7 +92,7 @@ class Model(ModelBase):
feat_embeddings_re = fluid.embedding(
input=feat_idx,
is_sparse=self.is_sparse,
is_sparse=True,
is_distributed=self.is_distributed,
dtype='float32',
size=[self.sparse_feature_number + 1, self.sparse_feature_dim],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册