Caffe
format.hpp
1 #ifndef CAFFE_UTIL_FORMAT_H_
2 #define CAFFE_UTIL_FORMAT_H_
3 
4 #include <iomanip> // NOLINT(readability/streams)
5 #include <sstream> // NOLINT(readability/streams)
6 #include <string>
7 
8 namespace caffe {
9 
10 inline std::string format_int(int n, int numberOfLeadingZeros = 0 ) {
11  std::ostringstream s;
12  s << std::setw(numberOfLeadingZeros) << std::setfill('0') << n;
13  return s.str();
14 }
15 
16 }
17 
18 #endif // CAFFE_UTIL_FORMAT_H_
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14