fty8788

Results issues of fty8788

现阶段C-API的使用介绍感觉比较简单,不够具体,导致初学者开发预测程序的难度不小。 能否提供基于C-API的通用预测程序,包括加载模型、读入测试数据、计算模型输出等基本功能。

一轮训练完成之后,写入文件,崩溃,代码是: ```python with gzip.open("dssm_%s_pass_%05d.tar.gz" % (model_save_name_prefix, event.pass_id), "w") as f: parameters.to_tar(f) ``` 错误日志是: ```bash [INFO 2017-07-13 15:26:48,320 train.py:199] Pass 0, Batch 4000, Cost 0.530298, {'__auc_evaluator_0__': 0.7309514880180359, 'classification_error_evaluator': 0.2705000042915344} (paddle_box) (paddle_box)...

Bug
User

在Paddle/paddle/capi下cmake . 出错: CMake Error at CMakeLists.txt:26 (add_style_check_target): Unknown CMake command "add_style_check_target". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2)...

User

http://wiki.baidu.com/pages/viewpage.action?pageId=333193833 采用预编译好的二进制库文件,加入examples/model_inference/dense项目 link_directories("/home/work/yitengfei/Paddle/paddle/capi/examples/usr/local/lib") 编译完后,运行出core,加-g后gdb栈是乱码: ![image](https://user-images.githubusercontent.com/7581590/29393552-fd672870-8336-11e7-9294-89d34eaaa2f7.png)

User

仿照Paddle/paddle/capi/examples/model_inference/sequence/main.c的代码,改成DSSM模型的预测程序,input是两个ids: ``` CHECK(paddle_arguments_resize(in_args, 2)); // Create input ids. int sentence_ids[] = {83, 48, 20, 84, 394, 853, 64, 53, 94}; paddle_ivector sentence0 = paddle_ivector_create( sentence_ids, sizeof(sentence_ids) / sizeof(int), false, false);...

背景: DSSM模型中,一个输入是query,另一个输入是候选词。为了优化线上计算性能,候选词可以离线计算出来,在线计算只计算query部分的网络,在线和离线结果直接给softmax层 做法: 1. 离线导出候选词最高隐层的输出结果 2. 在线计算,修改`trainer_config.py`,删除target部分的网络,输入设为dense_vector_sequence类型 3. main.c中,将离线结果生成ivector,输入给模型计算预测结果 问题: 加载原模型后,运行出core: ```text F0906 16:00:37.229890 28618 Parameter.cpp:349] Check failed: header.size == getSize() (32768 vs. 3455094) The size (32768) in the file...

Good Question
User

每轮Pass后,用测试集计算auc,auc不一致。 单节点时: Test at Pass 0, {'__auc_evaluator_0__': 0.7868553996086121, 'classification_error_evaluator': 0.2663058936595917} http://nmg01-hpc-off-mon.dmop.baidu.com:8090/job/i-646520/ 多节点时:(10节点) Test at Pass 0, {'__auc_evaluator_0__': 0.7584338784217834, 'classification_error_evaluator': 0.2819223999977112} Test at Pass 0, {'__auc_evaluator_0__': 0.7583796381950378, 'classification_error_evaluator': 0.28192976117134094} Test at...

User

core信息: ``` F0123 13:55:23.367887 14617 MemoryHandle.cpp:49] Check failed: size != 0 allocate 0 bytes *** Check failure stack trace: *** @ 0x7ffff6cee87d google::LogMessage::Fail() @ 0x7ffff6cf232c google::LogMessage::SendToLog() @ 0x7ffff6cee3a3 google::LogMessage::Flush() @...

User

用DSSM,只是换了一份训练数据重训模型,就出现Floating point exception的core I0322 14:36:48.685048 16304 MultiGradientMachine.cpp:99] numLogicalDevices=1 numThreads=4 numDevices=16 I0322 14:36:48.821815 16304 GradientMachine.cpp:85] Initing parameters.. I0322 14:37:08.328995 16304 GradientMachine.cpp:92] Init parameters done. [INFO 2018-03-22 14:37:08,539 reader.py:33] [reader] load trainset...

User

按照命令安装完后(curl 10.86.69.44:8192/install.sh | bash -s paddlepaddle_gpu-1.3.0.post97-cp27-cp27mu-linux_x86_64.whl),执行训练出错: fluid train.py Traceback (most recent call last): File "train.py", line 16, in import paddle.fluid as fluid File "/home/disk1/yitengfei/paddle_release_home/python/lib/python2.7/site-packages/paddle/fluid/__init__.py", line 18, in from . import...