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

Method LayerSetUp

src/caffe/layers/hdf5_output_layer.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11template <typename Dtype>
12void HDF5OutputLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
13 const vector<Blob<Dtype>*>& top) {
14 file_name_ = this->layer_param_.hdf5_output_param().file_name();
15 file_id_ = H5Fcreate(file_name_.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
16 H5P_DEFAULT);
17 CHECK_GE(file_id_, 0) << "Failed to open HDF5 file" << file_name_;
18 file_opened_ = true;
19}
20
21template <typename Dtype>
22HDF5OutputLayer<Dtype>::~HDF5OutputLayer<Dtype>() {

Callers

nothing calls this directly

Calls 1

file_nameMethod · 0.80

Tested by

no test coverage detected