From f0094acfbd54278744af0137e38a294af3858fe1 Mon Sep 17 00:00:00 2001 From: Yueqing Zhang Date: Mon, 12 Aug 2024 09:19:10 -0500 Subject: [PATCH] lint --- onnxruntime/core/providers/vitisai/imp/node_arg.cc | 4 ++-- .../core/providers/vitisai/include/vaip/vaip_ort_api.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/onnxruntime/core/providers/vitisai/imp/node_arg.cc b/onnxruntime/core/providers/vitisai/imp/node_arg.cc index aa635998f9361..fb648edad8c07 100644 --- a/onnxruntime/core/providers/vitisai/imp/node_arg.cc +++ b/onnxruntime/core/providers/vitisai/imp/node_arg.cc @@ -104,7 +104,7 @@ NodeArg& node_arg_new(Graph& graph, const std::string& name, const std::vector(graph.GetConstantInitializer(node_arg.Name(), true)); vai_assert(tensor_proto != nullptr, (std::string("tensor_proto is not found: name=") + node_arg.Name())); auto ret = 0; @@ -121,7 +121,7 @@ int node_arg_external_location(const Graph& graph, const NodeArg& node_arg, std: file = *data.mutable_value(); ret = 1; } else if (*data.mutable_key() == "offset") { - offset = (size_t) std::strtoull(data.mutable_value()->data(), &end, 10); + offset = (size_t)std::strtoull(data.mutable_value()->data(), &end, 10); } else if (*data.mutable_key() == "length") { size = (size_t)std::strtoull(data.mutable_value()->data(), &end, 10); } else if (*data.mutable_key() == "checksum") { diff --git a/onnxruntime/core/providers/vitisai/include/vaip/vaip_ort_api.h b/onnxruntime/core/providers/vitisai/include/vaip/vaip_ort_api.h index 598695f0f6a55..d5a2c0477c78c 100644 --- a/onnxruntime/core/providers/vitisai/include/vaip/vaip_ort_api.h +++ b/onnxruntime/core/providers/vitisai/include/vaip/vaip_ort_api.h @@ -227,8 +227,8 @@ struct OrtApiForVaip { const std::filesystem::path& (*get_model_path)(const Graph& graph); // [90] Model* (*create_empty_model)(const std::filesystem::path& path, const std::vector>& opset); //[91] void (*graph_set_inputs)(Graph& graph, - gsl::span inputs); // [92] - int(*node_arg_external_location)(const Graph& graph, const NodeArg& node_arg, std::string& file, size_t& offset, size_t& size, size_t& checksum); // [93] + gsl::span inputs); // [92] + int (*node_arg_external_location)(const Graph& graph, const NodeArg& node_arg, std::string& file, size_t& offset, size_t& size, size_t& checksum); // [93] }; #ifndef USE_VITISAI