Skip to content

Commit 13e7792

Browse files
authored
fix: enable test & lint fixes (#725)
1 parent c3284bc commit 13e7792

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

onnxruntime/core/providers/openvino/backend_manager.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ BackendManager::BackendManager(SessionContext& session_context,
116116
subgraph_context_.has_dynamic_input_shape = true;
117117
LOGS_DEFAULT(INFO) << "[OpenVINO-EP] Model has symbolic input dims";
118118
if ((!session_context_.disable_dynamic_shapes &&
119-
(session_context_.device_type.find("CPU") != std::string::npos ||
120-
session_context_.device_type.find("GPU") != std::string::npos)) ||
119+
(session_context_.device_type.find("CPU") != std::string::npos ||
120+
session_context_.device_type.find("GPU") != std::string::npos)) ||
121121
(subgraph_context_.is_ep_ctx_graph)) {
122122
LOGS_DEFAULT(INFO) << "[OpenVINO-EP] Starting backend initialization. "
123123
<< "Creating backend Dynamic Shapes";

onnxruntime/test/contrib_ops/attention_op_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ TEST(AttentionTest, AttentionPastState_dynamic) {
20472047
test.AddInput<float>("past", past_dims, past_data);
20482048

20492049
test.AddReferenceOutputs("testdata/attention_past_state.onnx", 0.005f);
2050-
test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kOpenVINOExecutionProvider});
2050+
test.Run();
20512051
}
20522052
#endif //! defined(__wasm__)
20532053

onnxruntime/test/providers/cpu/reduction/reduction_ops_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4102,8 +4102,8 @@ TEST(ReductionOpTest, ReduceSum_noop_axes_input_initializer_opset_18) {
41024102
test.Run(
41034103
OpTester::ExpectResult::kExpectSuccess,
41044104
"",
4105-
{kOpenVINOExecutionProvider} // OpenVINO: Disabled temporarily
4106-
);
4105+
{kOpenVINOExecutionProvider} // OpenVINO: Disabled temporarily
4106+
);
41074107
}
41084108

41094109
TEST(ReductionOpTest, ReduceSum_empty_axes_input_initializer_opset_18) {

0 commit comments

Comments
 (0)