Skip to content

Commit b714817

Browse files
committed
fixing cpplint
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
1 parent 0e50b64 commit b714817

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sherpa-onnx/csrc/provider.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ enum class Provider {
1818
kCoreML = 2, // CoreMLExecutionProvider
1919
kXnnpack = 3, // XnnpackExecutionProvider
2020
kNNAPI = 4, // NnapiExecutionProvider
21-
kTRT = 5, //TensorRTExecutionProvider
21+
kTRT = 5, // TensorRTExecutionProvider
2222
};
2323

2424
/**

sherpa-onnx/csrc/session.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static Ort::SessionOptions GetSessionOptionsImpl(int32_t num_threads,
147147
"1",
148148
".",
149149
"1",
150-
".", // can be same as the engine cache folder
150+
".", // can be same as the engine cache folder
151151
};
152152
std::vector<std::string> available_providers =
153153
Ort::GetAvailableProviders();
@@ -159,10 +159,9 @@ static Ort::SessionOptions GetSessionOptionsImpl(int32_t num_threads,
159159
Ort::ThrowOnError(api.CreateTensorRTProviderOptions(&tensorrt_options));
160160

161161
Ort::ThrowOnError(api.UpdateTensorRTProviderOptions(tensorrt_options,
162-
option_keys.data(), option_values.data(), option_keys.size()));
162+
option_keys.data(), option_values.data(), option_keys.size()));
163163

164164
sess_opts.AppendExecutionProvider_TensorRT_V2(*tensorrt_options);
165-
166165
}
167166
}
168167
}

0 commit comments

Comments
 (0)