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
gaoqiong
RapidASR
Commits
5e7ee551
Commit
5e7ee551
authored
Feb 26, 2023
by
mayong
Browse files
update files.
parent
9e098574
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cpp_onnx/src/lib/paraformer_onnx.cpp
cpp_onnx/src/lib/paraformer_onnx.cpp
+1
-1
cpp_onnx/src/lib/paraformer_onnx.h
cpp_onnx/src/lib/paraformer_onnx.h
+1
-1
cpp_onnx/tester/tester.cpp
cpp_onnx/tester/tester.cpp
+1
-1
No files found.
cpp_onnx/src/lib/paraformer_onnx.cpp
View file @
5e7ee551
...
...
@@ -10,7 +10,7 @@ ModelImp::ModelImp(const char* path,int nNumThread)
fe
=
new
FeatureExtract
(
3
);
//
sessionOptions.SetInterOpNumThreads(nNumThread);
sessionOptions
.
SetInterOpNumThreads
(
nNumThread
);
sessionOptions
.
SetGraphOptimizationLevel
(
GraphOptimizationLevel
::
ORT_ENABLE_EXTENDED
);
#ifdef _WIN32
...
...
cpp_onnx/src/lib/paraformer_onnx.h
View file @
5e7ee551
...
...
@@ -39,7 +39,7 @@ namespace paraformer {
//string m_strOutputName, m_strOutputNameLen;
public:
ModelImp
(
const
char
*
path
,
int
nNumThread
=
4
);
ModelImp
(
const
char
*
path
,
int
nNumThread
=
0
);
~
ModelImp
();
void
reset
();
string
forward_chunk
(
float
*
din
,
int
len
,
int
flag
);
...
...
cpp_onnx/tester/tester.cpp
View file @
5e7ee551
...
...
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
long
taking_micros
=
((
seconds
*
1000000
)
+
end
.
tv_usec
)
-
(
start
.
tv_usec
);
printf
(
"Model inference takes %lfs.
\n
"
,
(
double
)
micros
/
1000000
);
printf
(
"Model inference RTF %04lf.
\n
"
,
(
double
)
taking_micros
/
micros
);
printf
(
"Model inference RTF
:
%04lf.
\n
"
,
(
double
)
taking_micros
/
micros
);
delete
mm
;
...
...
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