paddle v2 python api 存在问题
Created by: NHZlX
ipython这个工具可以查看一个类的接口,以及接口的代码。个人感觉,有时候用ipython查看比查看文档方便的多,不过用ipython 查看paddle代码时候,存在一些问题, for example:
In [1]: import paddle.v2 as paddle
pa
In [2]: paddle.layer.fc??
Signature: paddle.layer.fc(*args, **xargs)
Source:
def wrapped(*args, **xargs):
out = f(*args, **xargs)
outs = out
if not isinstance(out, collections.Sequence):
outs = [out]
for l in outs:
if isinstance(l, conf_helps.LayerOutput):
__layer_map__[l.full_name] = l
return out
File: ~/.jumbo/lib/python2.7/site-packages/paddle/v2/config_base.py
Type: function
当我查看fc layer的实现的时候, 出现了这个代码,个人认为不是很友好,希望在new paddle中避免这种问题