提交 b70002c5 编写于 作者: S seiriosPlus

fix UT

上级 ef2b1af4
...@@ -68,7 +68,7 @@ class TestPSPassWithBow(unittest.TestCase): ...@@ -68,7 +68,7 @@ class TestPSPassWithBow(unittest.TestCase):
name="query_ids", shape=[1], dtype="int64", lod_level=1) name="query_ids", shape=[1], dtype="int64", lod_level=1)
# embedding # embedding
q_emb = fluid.contrib.layers.sparse_embedding( q_emb = fluid.contrib.layers.sparse_embedding(
input=pt, input=q,
size=[dict_dim, emb_dim], size=[dict_dim, emb_dim],
param_attr=fluid.ParamAttr( param_attr=fluid.ParamAttr(
initializer=fluid.initializer.Constant(value=0.01), initializer=fluid.initializer.Constant(value=0.01),
...@@ -117,7 +117,7 @@ class TestPSPassWithBow(unittest.TestCase): ...@@ -117,7 +117,7 @@ class TestPSPassWithBow(unittest.TestCase):
name="neg_title_ids", shape=[1], dtype="int64", lod_level=1) name="neg_title_ids", shape=[1], dtype="int64", lod_level=1)
# embedding # embedding
nt_emb = fluid.contrib.layers.sparse_embedding( nt_emb = fluid.contrib.layers.sparse_embedding(
input=pt, input=nt,
size=[dict_dim, emb_dim], size=[dict_dim, emb_dim],
param_attr=fluid.ParamAttr( param_attr=fluid.ParamAttr(
initializer=fluid.initializer.Constant(value=0.01), initializer=fluid.initializer.Constant(value=0.01),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册