提交 7b0b8ecb 编写于 作者: R ranqiu

Update README.md of ctr according to the codes

上级 58e3877c
...@@ -134,11 +134,11 @@ The model has three inputs as follows. ...@@ -134,11 +134,11 @@ The model has three inputs as follows.
```python ```python
dnn_merged_input = layer.data( dnn_merged_input = layer.data(
name='dnn_input', name='dnn_input',
type=paddle.data_type.sparse_binary_vector(data_meta_info['dnn_input'])) type=paddle.data_type.sparse_binary_vector(self.dnn_input_dim))
lr_merged_input = layer.data( lr_merged_input = layer.data(
name='lr_input', name='lr_input',
type=paddle.data_type.sparse_binary_vector(data_meta_info['lr_input'])) type=paddle.data_type.sparse_vector(self.lr_input_dim))
click = paddle.layer.data(name='click', type=dtype.dense_vector(1)) click = paddle.layer.data(name='click', type=dtype.dense_vector(1))
``` ```
......
...@@ -176,11 +176,11 @@ The model has three inputs as follows. ...@@ -176,11 +176,11 @@ The model has three inputs as follows.
```python ```python
dnn_merged_input = layer.data( dnn_merged_input = layer.data(
name='dnn_input', name='dnn_input',
type=paddle.data_type.sparse_binary_vector(data_meta_info['dnn_input'])) type=paddle.data_type.sparse_binary_vector(self.dnn_input_dim))
lr_merged_input = layer.data( lr_merged_input = layer.data(
name='lr_input', name='lr_input',
type=paddle.data_type.sparse_binary_vector(data_meta_info['lr_input'])) type=paddle.data_type.sparse_vector(self.lr_input_dim))
click = paddle.layer.data(name='click', type=dtype.dense_vector(1)) click = paddle.layer.data(name='click', type=dtype.dense_vector(1))
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册