trainer.test Check Failed: size != 0
Created by: mengyiliu22
在执行trainer.test时报如下错误: start test reader from ../../data/test_data/online1 [INFO 2019-02-18 20:02:40,956 reader.py:124] start test reader from ../../data/test_data/online1 F0218 20:02:41.890638 3797 MemoryHandle.cpp:49] Check failed: size != 0 allocate 0 bytes *** Check failure stack trace: *** @ 0x7f308fefceed google::LogMessage::Fail() @ 0x7f308ff0099c google::LogMessage::SendToLog() @ 0x7f308fefca13 google::LogMessage::Flush() @ 0x7f308ff01eae google::LogMessageFatal::~LogMessageFatal() @ 0x7f308fe5bc89 paddle::CpuMemoryHandle::CpuMemoryHandle() @ 0x7f308fe23e1e paddle::CpuVectorT<>::CpuVectorT() @ 0x7f308fe2442a paddle::VectorT<>::create() @ 0x7f308fee5d45 IVector::create()
在数据yeiled之前打印了数据,不管batch_size设置了多大,打印出来的test数据总是batch_size *2 + 1条,然后程序就报错了