加预训练的embedding层参数出错误
Created by: WoNiuHu
外接embedding层的时候,用的v1版本的paddle, 先把本地的embedding词典转成二进制之后,传入,再加embedding里面的词和id做了一个word_dict 传入,跑的时候出现以下错误。 请帮忙看下哈.
F0711 15:20:57.064468 15230 Parameter.cpp:383] Check failed: s.read(reinterpret_cast<char*>(vec.getData()), header.size * sizeof(real))
*** Check failure stack trace: ***
@ 0x13b4438 google::LogMessage::Fail()
@ 0x13b4390 google::LogMessage::SendToLog()
@ 0x13b3e25 google::LogMessage::Flush()
@ 0x13b6be6 google::LogMessageFatal::~LogMessageFatal()
@ 0x82e17f paddle::Parameter::load()
@ 0x82e86d paddle::Parameter::load()
@ 0x6d90ba paddle::GradientMachine::loadParameters()
@ 0x712efc paddle::ParameterUtil::loadParametersWithPath()
@ 0x70202f paddle::Trainer::init()
@ 0x591ee9 main
@ 0x7f4433a81bd5 __libc_start_main
@ 0x59dbf5 (unknown)
/home/huhaibing01/tools/paddlell/bin/paddle_local: line 109: 15230 Aborted ${DEBUGGER} $MYDIR/../opt/paddle/bin/paddle_trainer ${@:2}