Set data into Blob variable (caffe c++)

  c++, caffe

I’m using caffe with c++.

I have this line to predict the output:

  const std::vector< caffe::Blob<float>* > output = network_->Forward(inputs,&loss);

I have already an array of all outputs of this network.
It’s possible to create a caffe::Blob<float> with my data?

Example:

const std::vector< caffe::Blob<float>* > output = new caffe::Blob<float>([0,0])//example
output[0].setData(MYDATA) // just an example, this function don't exist
//MYDATA is an array of output already predicted

Source: Windows Questions C++

LEAVE A COMMENT