seanxh
seanxh
 对于这个网络https://github.com/PaddlePaddle/book/blob/develop/03.image_classification/vgg.py img_conv_group这个函数没有找到详细的解释,我理解应该是conv_num_filter个带bn的卷积层,然后接一个MAXPOOL。但我不理解的是,每个bn层,为什么有___batch_norm_0__.w0,w1,w2三个参数呢? 一个32\*32\*3的图像,经过一个有64个3\*3\*3大小的卷积核后,应该输出30\*30\*64大小。其bn层不应该只有两个参数w_0是64的,b_0也是64的吗?
在paddle book的情感分析例子里。[http://www.paddlepaddle.org/docs/develop/book/06.understand_sentiment/index.cn.html](url) 1、lstm memory的输入是fc层的512维output。lstm的输出应该有c_t和h_t两个output,每个128维,为啥网络中lstm_memory的输出只有128维。输出的是哪个呢? 2、这个例子中对于不同长度的句子,是如何进行padding的,貌似没有体现?data = paddle.layer.data("word",paddle.data_type.integer_value_sequence(input_dim)) ,它的输入可以理解为是一个int sequence?网络直接对这个变长的int 序列进行embedding?而不是One-hot向量 3、fc_last = paddle.layer.pooling(input=inputs[0], pooling_type=paddle.pooling.Max()) 这句的代码,inputs[0]应该是512维的,输出还是512维的?他做了一个什么维度的MaxPOOLING?
[机器翻译 paddle book](http://www.paddlepaddle.org/docs/develop/book/08.machine_translation/index.cn.html#permalink-14--) demo里有解码时使用beam search的例子。 我现在的网络是一个回归问题。在解码时,不需要beam search。 而只需要一个给定初始输入和宽度,能依次解码出回归值即可。类似于下面这样 请问paddle里有现成的这个结构可用吗? ```python if is_generating: # In generation, the decoder predicts a next target word based on # the encoded source sequence and...
```python # coding: utf-8 # In[1]: import numpy as np import time import paddle import paddle.fluid as fluid import paddle.fluid.core as core import paddle.fluid.framework as framework from paddle.fluid.executor import Executor...
```python scope = fluid.global_scope(); scope.find_var('fc_0.w_0').get_tensor().set([1,2,3,4],fluid.CPUPlace()) ``` 1、I know the tensor has a `set` api can specified weights. But it seems the tensor doesn't have a `get` api ? 2、It seems...
```python shape = [2] gate_size = 1 data = fluid.layers.data(name='data', shape=shape, dtype='float32') input_forward_proj = fluid.layers.fc(name='fc_0',input=data, size=gate_size * 4, act=None, bias_attr=False) forward, state = fluid.layers.dynamic_lstm( name='blstm_0', input=input_forward_proj, size=gate_size * 4,use_peepholes=False,gate_activation='sigmoid') place...
```python import numpy as np import time import paddle import paddle.fluid as fluid import paddle.fluid.core as core import paddle.fluid.framework as framework from paddle.fluid.executor import Executor x = fluid.layers.data(name='x', shape=[4,1], dtype='float32')...
我想复现你们api中的demo。 [sequence-expand](http://www.paddlepaddle.org/docs/develop/api/fluid/en/layers.html#sequence-expand) 貌似并没有像我预期的运行? ```python import numpy as np import time import paddle import paddle.fluid as fluid import paddle.fluid.core as core import paddle.fluid.framework as framework from paddle.fluid.executor import Executor def to_lodtensor(data,...
在sequence_expand的[例子](http://www.paddlepaddle.org/docs/develop/api/fluid/en/layers.html#sequence-expand)中有一个 ``` x is a LoDTensor: x.lod = [[0, 2, 4]] x.data = [[a], [b], [c], [d]] x.dims = [4, 1] ``` 不太理解这儿的lod = [[[0,2,4]]是什么意思,它对应的batch每个input是什么样的呢?我理解的不应该是batch里每个input的sequence长度吗?像[设计文档](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/design/concepts/lod_tensor.md)中提到的。 ``` 3 1 2 |||...
```python import numpy as np import time import paddle import paddle.fluid as fluid import paddle.fluid.core as core import paddle.fluid.framework as framework from paddle.fluid.executor import Executor def to_lodtensor(data, place): seq_lens =...