MCPcopy Create free account
hub / github.com/BVLC/caffe / SaveBlobs

Method SaveBlobs

src/caffe/layers/hdf5_output_layer.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <typename Dtype>
30void HDF5OutputLayer<Dtype>::SaveBlobs() {
31 // TODO: no limit on the number of blobs
32 LOG(INFO) << "Saving HDF5 file " << file_name_;
33 CHECK_EQ(data_blob_.num(), label_blob_.num()) <<
34 "data blob and label blob must have the same batch size";
35 hdf5_save_nd_dataset(file_id_, HDF5_DATA_DATASET_NAME, data_blob_);
36 hdf5_save_nd_dataset(file_id_, HDF5_DATA_LABEL_NAME, label_blob_);
37 LOG(INFO) << "Successfully saved " << data_blob_.num() << " rows";
38}
39
40template <typename Dtype>
41void HDF5OutputLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,

Callers

nothing calls this directly

Calls 1

numMethod · 0.80

Tested by

no test coverage detected