Peng LI

Results issues of Peng LI

目前在写网络config时,都会使用from paddle.trainer_config_helpers import *,此时会将python/paddle/trainer_config_helpers/math.py导入命名空间,与python自带的math库发生名字冲突。一方面由此引发报错时很难追查,另一方面如果需要同时使用二者时,会比较麻烦。因此建议对该文件名进行修改,或在python/paddle/trainer_config_helpers/__init__.py将import math修改为import math as NEW_NAME 该问题已导致SRL demo无法运行:db_lstm.py中先导入系统库math,然后通过from paddle.trainer_config_helpers import * 意外导入paddle.trainer_config_helpers.math,将系统库math覆盖,引起db_lstm.py第116行找不到sqrt()定义。

Bug

pre-commit中clang-format似乎默认用的是4.0版或更高,当使用clang-format 3.6时,格式化出来的结果会与4.0有差别。参见[此处](https://github.com/PaddlePaddle/Paddle/pull/678/commits/5c3b8f6bd18bfadfa23e2a4eb4821bf383a3fd77),左侧为3.6格式化结果,右侧为4.0格式化结果。

将DataLayer直接作为evaluator的输入时会出core:疑似DataLayer的forward()函数调用时机与其他layer不同,而evaluator并不会主动调用input的forward()函数,因此如果直接将DataLayer作为evaluator的输入,DataLayer的value和ids都将是空指针,导致出core。如下为可重现将问题的最小配置。 ``` from paddle.trainer_config_helpers import * dim = 4 define_py_data_sources2( train_list='train.list', test_list=None, module='data', obj='process',) input = data_layer(name='input', size=dim) label = data_layer(name='label', size=dim) prob = fc_layer(input=input, size=4, act=SoftmaxActivation(), bias_attr=False) classification_error_evaluator(input=input, label=label)...

paddle/py_paddle/dataprovider_converter.py在处理integer_value_sub_sequence型的数据时会出错。原因是integer_value_sub_sequence与其他类型的sub_sequence格式不同,前者形如[[], [], []],后者形如[[[],[]], [[],[]]],从而导致内层的SequenceScaner出错。

It seems that Adam and Adamax do not take L2 decay into account when updating parameters.

Maybe it is useful to provide a guide for converting v1 configs to v2 such that v1 API users can simply go through the guide and begin to use the...

As the major users are still using v1 APIs, shall we add a link to older version docs on paddle's homepage? Otherwise, it will cause a lot of unnecessary troubles...

PaddlePaddle fails to detect the error when there are static parameters (`is_static=True`) but `init_model_path` is not set. PaddlePaddle should report the error and exit, but it simply initializes the parameters...

The logo on the homepage is different from those on other pages, e.g. book and doc.

Currently, we can not implement formula (3) easily in paper _[Improved Training of Wasserstein GANs](https://arxiv.org/abs/1704.00028)_, because we need the gradient of a gradient. Maybe this will be a good functionality...