Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2025-01-16 15:43:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-01-16 15:43:51 +0800
Commit
2d0869c7091c8621ba738e8fd0aaa04e66499eb0
2d0869c7
1 parent
af671e2b
Fix style issues (#1718)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
sherpa-onnx/csrc/provider-config.h
sherpa-onnx/csrc/provider-config.h
查看文件 @
2d0869c
...
...
@@ -7,9 +7,9 @@
#include <string>
#include "sherpa-onnx/csrc/parse-options.h"
#include "sherpa-onnx/csrc/macros.h"
#include "onnxruntime_cxx_api.h" // NOLINT
#include "sherpa-onnx/csrc/macros.h"
#include "sherpa-onnx/csrc/parse-options.h"
namespace
sherpa_onnx
{
...
...
@@ -41,10 +41,8 @@ struct TensorrtConfig {
TensorrtConfig
()
=
default
;
TensorrtConfig
(
int64_t
trt_max_workspace_size
,
int32_t
trt_max_partition_iterations
,
int32_t
trt_min_subgraph_size
,
bool
trt_fp16_enable
,
bool
trt_detailed_build_log
,
bool
trt_engine_cache_enable
,
int32_t
trt_min_subgraph_size
,
bool
trt_fp16_enable
,
bool
trt_detailed_build_log
,
bool
trt_engine_cache_enable
,
bool
trt_timing_cache_enable
,
const
std
::
string
&
trt_engine_cache_path
,
const
std
::
string
&
trt_timing_cache_path
,
...
...
@@ -74,15 +72,15 @@ struct ProviderConfig {
// device only used for cuda and trt
ProviderConfig
()
=
default
;
ProviderConfig
(
const
std
::
string
&
provider
,
int32_t
device
)
ProviderConfig
(
const
std
::
string
&
provider
,
int32_t
device
)
:
provider
(
provider
),
device
(
device
)
{}
ProviderConfig
(
const
TensorrtConfig
&
trt_config
,
const
CudaConfig
&
cuda_config
,
const
std
::
string
&
provider
,
const
CudaConfig
&
cuda_config
,
const
std
::
string
&
provider
,
int32_t
device
)
:
trt_config
(
trt_config
),
cuda_config
(
cuda_config
),
provider
(
provider
),
device
(
device
)
{}
:
trt_config
(
trt_config
),
cuda_config
(
cuda_config
),
provider
(
provider
),
device
(
device
)
{}
void
Register
(
ParseOptions
*
po
);
bool
Validate
()
const
;
...
...
请
注册
或
登录
后发表评论