Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
GPT2_onnxruntime
Commits
c42ee6ec
Commit
c42ee6ec
authored
Aug 16, 2024
by
yangql
Browse files
增加对dtk24.04.1的支持,以及对k100_AI的支持。
parent
43bee844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Src/Utility/Filesystem.cpp
Src/Utility/Filesystem.cpp
+2
-2
Src/Utility/SimpleLog.h
Src/Utility/SimpleLog.h
+1
-1
No files found.
Src/Utility/Filesystem.cpp
View file @
c42ee6ec
...
...
@@ -679,9 +679,9 @@ static std::vector<std::string> SplitString(std::string str, std::string separat
// process
double
process
=
(
1.0
*
(
i
+
1
)
/
fileNameList
.
size
())
*
100
;
printf
(
"%s done! %f
%
\n
"
,
GetFileName
(
fileNameList
[
i
]).
c_str
(),
process
);
printf
(
"%s done! %f
\n
"
,
GetFileName
(
fileNameList
[
i
]).
c_str
(),
process
);
}
printf
(
"all done!(the number of files:%
d
)
\n
"
,
fileNameList
.
size
());
printf
(
"all done!(the number of files:%
zu
)
\n
"
,
fileNameList
.
size
());
return
true
;
...
...
Src/Utility/SimpleLog.h
View file @
c42ee6ec
...
...
@@ -164,7 +164,7 @@ inline LogTime GetTime()
gettimeofday
(
&
tv
,
NULL
);
p
=
localtime
(
&
tv
.
tv_sec
);
char
temp
[
8
]
=
{
0
};
char
temp
[
12
]
=
{
0
};
sprintf
(
temp
,
"%04d"
,
1900
+
p
->
tm_year
);
currentTime
.
year
=
string
(
temp
);
sprintf
(
temp
,
"%02d"
,
1
+
p
->
tm_mon
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment