Exemple #1
0
// Usage: caffe_('net_reshape', hNet)
static void net_reshape(MEX_ARGS) {
	mxCHECK(nrhs == 1 && mxIsStruct(prhs[0]),
		"Usage: caffe_('net_reshape', hNet)");
	Net<float>* net = handle_to_ptr<Net<float> >(prhs[0]);
	net->Reshape();
}
Exemple #2
0
EXPORT void caffe_net_Reshape(void *netAnon)
{
	Net<float> *net = (Net<float> *)netAnon;
	net->Reshape();
}