Skip to content

Commit f8081e8

Browse files
committed
fix warnming
1 parent 00c9985 commit f8081e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ common::Status TensorrtExecutionProvider::RefitEngine(std::string onnx_model_fil
29212921
bool refit_from_file = onnx_model_bytestream == nullptr && onnx_model_bytestream_size == 0;
29222922
bool refit_with_external_data_bytestream = onnx_external_data_bytestream != nullptr && onnx_external_data_bytestream_size != 0;
29232923
bool refit_with_weights_in_memory = in_memory_weights.size() > 0;
2924-
bool refit_with_external_data = refit_with_weights_in_memory || refit_with_weights_in_memory;
2924+
bool refit_with_external_data = refit_with_weights_in_memory || refit_with_external_data_bytestream;
29252925
bool refit_complete = false;
29262926
std::filesystem::path onnx_model_path{onnx_model_folder_path};
29272927
if (refit_from_file) {

0 commit comments

Comments
 (0)