How to input data to MemoryDataLayer??

421 views
Skip to first unread message

Jang Hanyoung

unread,
Feb 26, 2015, 6:18:33 AM2/26/15
to caffe...@googlegroups.com
Hello~

I defined MemoryDataLayer as
layers {
  name
: "gameData"
  type
: MEMORY_DATA
  top
: "gameData"
  top
: "lable"
  memory_data_param
{
        batch_size
: 4
        channels
: 2
        height
: 1
        width
: 1
       
}
}

Because almost examples adopt file I/O, I could not find how MEMORY_DATA intiates, at all.

How can I transfer the data to memory data layer?

Anyhow I set up the caffe as

SolverParameter solver_param;
 
ReadProtoFromTextFileOrDie(argv[1], &solver_param);  
  LOG
(INFO) << "Starting Optimization";
 
SGDSolver<float> solver(solver_param);

and when I run the solver as

solver.Solve();    

I got an error "MemoryDataLayer needs to be initalized by calling Reset" in Forward_cpu()

Ya, obiously I shoud use Reset function, but I could not find a way. Plz help me.

Reply all
Reply to author
Forward
0 new messages