Skip to content

Commit

Permalink
Address std::string_view conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Feb 22, 2024
1 parent 6308d29 commit f6db0ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion onnxruntime/test/providers/cpu/tensor/resize_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,11 @@ void TestAntialiasing(std::map<std::string, std::string> attributes,

test.AddOutput<T>("Y", output_shape, output_data);

std::unordered_set<std::string> excluded_eps(excluded_ep.begin(), excluded_ep.end());
std::unordered_set<std::string> excluded_eps;
std::transform(excluded_ep.begin(), excluded_ep.end(),
std::inserter(excluded_eps, excluded_eps.end()), [](std::string_view ep) {
return std::string(ep);
});
// TensorRT 8.5 supports operators up to Opset 17. Temporarily exclude TensorRT EP due to accuracy issue.
excluded_eps.insert(kTensorrtExecutionProvider);

Expand Down

0 comments on commit f6db0ba

Please sign in to comment.