提交 99fc1b28 编写于 作者: S Superjom

change no to i

上级 8820e381
...@@ -117,12 +117,12 @@ Deep 部分使用了标准的多层前向传导的 NN 模型 ...@@ -117,12 +117,12 @@ Deep 部分使用了标准的多层前向传导的 NN 模型
def build_dnn_submodel(dnn_layer_dims): def build_dnn_submodel(dnn_layer_dims):
dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0]) dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0])
_input_layer = dnn_embedding _input_layer = dnn_embedding
for no, dim in enumerate(dnn_layer_dims[1:]): for i, dim in enumerate(dnn_layer_dims[1:]):
fc = layer.fc( fc = layer.fc(
input=_input_layer, input=_input_layer,
size=dim, size=dim,
act=paddle.activation.Relu(), act=paddle.activation.Relu(),
name='dnn-fc-%d' % no) name='dnn-fc-%d' % i)
_input_layer = fc _input_layer = fc
return _input_layer return _input_layer
``` ```
......
...@@ -40,12 +40,12 @@ click = paddle.layer.data(name='click', type=dtype.dense_vector(1)) ...@@ -40,12 +40,12 @@ click = paddle.layer.data(name='click', type=dtype.dense_vector(1))
def build_dnn_submodel(dnn_layer_dims): def build_dnn_submodel(dnn_layer_dims):
dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0]) dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0])
_input_layer = dnn_embedding _input_layer = dnn_embedding
for no, dim in enumerate(dnn_layer_dims[1:]): for i, dim in enumerate(dnn_layer_dims[1:]):
fc = layer.fc( fc = layer.fc(
input=_input_layer, input=_input_layer,
size=dim, size=dim,
act=paddle.activation.Relu(), act=paddle.activation.Relu(),
name='dnn-fc-%d' % no) name='dnn-fc-%d' % i)
_input_layer = fc _input_layer = fc
return _input_layer return _input_layer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册