From 99fc1b2897885d0f1bdad346b6bfb0fe7646d828 Mon Sep 17 00:00:00 2001 From: Superjom Date: Fri, 26 May 2017 16:20:22 +0800 Subject: [PATCH] change no to i --- ctr/README.md | 4 ++-- ctr/train.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ctr/README.md b/ctr/README.md index 80053d56..3ed09385 100644 --- a/ctr/README.md +++ b/ctr/README.md @@ -117,12 +117,12 @@ Deep 部分使用了标准的多层前向传导的 NN 模型 def build_dnn_submodel(dnn_layer_dims): dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0]) _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( input=_input_layer, size=dim, act=paddle.activation.Relu(), - name='dnn-fc-%d' % no) + name='dnn-fc-%d' % i) _input_layer = fc return _input_layer ``` diff --git a/ctr/train.py b/ctr/train.py index 7525c802..53536d99 100644 --- a/ctr/train.py +++ b/ctr/train.py @@ -40,12 +40,12 @@ click = paddle.layer.data(name='click', type=dtype.dense_vector(1)) def build_dnn_submodel(dnn_layer_dims): dnn_embedding = layer.fc(input=dnn_merged_input, size=dnn_layer_dims[0]) _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( input=_input_layer, size=dim, act=paddle.activation.Relu(), - name='dnn-fc-%d' % no) + name='dnn-fc-%d' % i) _input_layer = fc return _input_layer -- GitLab