v2 api打印两次网络配置
Created by: luotao1
目前book中会打印两次网络配置,如第一课运行python train.py
:
[INFO 2017-03-27 14:27:18,675 networks.py:1472] The input order is [x, y]
[INFO 2017-03-27 14:27:18,675 networks.py:1478] The output order is [__mse_cost_0__]
[INFO 2017-03-27 14:27:18,678 networks.py:1472] The input order is [x, y]
[INFO 2017-03-27 14:27:18,679 networks.py:1478] The output order is [__mse_cost_0__]
原因是parameters创建时,和paddle.train时,都会解析一遍网络。 所以能否只打印一遍网络,以防用户纠结;或者默认不打印网络,只在debug模式下打印?
parameters = paddle.parameters.create(network_output1, network_output2, verbose=True);
paddle.train(parameters, network_output1);
paddle.train(parameters, network_output2);