microsoft / caffe

Caffe on both Linux and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

registry.count(type) == 1 (0 vs. 1) Unknown layer type: MemoryData (known types: )

chenjoya opened this issue · comments

When I add code just like

namespace caffe
{
extern INSTANTIATE_CLASS(MemoryDataLayer);
REGISTER_LAYER_CLASS(MemoryData);
}
then ......
Check failed: registry.count(type) == 0 (1 vs. 0) Layer type MemoryData already registered.
I'm crazy......Hope for your answer.~~

commented

Same problem here, but with "Input" layer.
F0811 20:28:35.615144 12572 layer_factory.hpp:81] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Input (known types: )

@lopho
I guess I have solved it....
Just add extern INSTANTIATE_CLASS(MemoryDataLayer); only...
you can add
namespace caffe{
.....
REGISTER_LAYER_CLASS(Input);}
Hope to help you

commented

Ah, no, sorry I misread your original bug report. My problem is a different one entirely.