FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CaffeOnACL/include/caffe/util/format.hpp at master · 2php/CaffeOnACL · GitHub
2php
CaffeOnACL
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CaffeOnACL
/
include
/
caffe
/
util
/
format.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 416 Bytes
Breadcrumbs
CaffeOnACL
/
include
/
caffe
/
util
/
format.hpp
Copy path
File metadata and controls
18 lines (13 loc) · 416 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
ifndef
CAFFE_UTIL_FORMAT_H_
#
define
CAFFE_UTIL_FORMAT_H_
#
include
<
iomanip
>
//
NOLINT(readability/streams)
#
include
<
sstream
>
//
NOLINT(readability/streams)
#
include
<
string
>
namespace
caffe
{
inline
std::string
format_int
(
int
n,
int
numberOfLeadingZeros =
0
) {
std::ostringstream s;
s <<
std::setw
(numberOfLeadingZeros) <<
std::setfill
(
'
0
'
) << n;
return
s.
str
();
}
}
#
endif
//
CAFFE_UTIL_FORMAT_H_
Back
|
FazBrowse Home
|
New Git URL