Skip to content

Commit

Permalink
fix ut failures
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhkale17 committed Aug 8, 2023
1 parent dc95a11 commit d8972b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void BasicBackend::PopulateConfigValue(ov::AnyMap& device_config) {
#if defined(OPENVINO_2023_0) || (OPENVINO_2023_1)
if (global_context_.device_type.find("VPUX") != std::string::npos) {
std::pair<std::string, ov::Any> device_property;
device_property = std::make_pair("VPUX_COMPILER_TYPE", "MLIR");
device_property = std::make_pair("VPU_COMPILER_TYPE", "MLIR");
device_config.emplace(ov::device::properties("VPUX", device_property));
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct OpenVINO_Provider : Provider {
bool enable_opencl_throttling = false; // [enable_opencl_throttling]: Enables OpenCL queue throttling for GPU
// device (Reduces CPU Utilization when using GPU)
bool enable_dynamic_shapes = false; // [enable_dynamic_shapes]: Enables Dynamic Shapes feature for CPU device)
void* context;
void* context=nullptr;

if (provider_options_map.find("device_type") != provider_options_map.end()) {
device_type = provider_options_map.at("device_type").c_str();
Expand Down
3 changes: 2 additions & 1 deletion onnxruntime/core/providers/openvino/ov_versions/data_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ std::set<std::string> ops_supported_only_in_model = {
"ConstantOfShape",
"DequantizeLinear",
"Dropout",
"Einsum",
"Exp",
"Expand",
"EyeLike",
Expand Down Expand Up @@ -127,7 +128,7 @@ std::vector<SupportedOp> supported_op_mode = {
{"Dropout", V_2023_0, {"VPUX"}},
{"Elu", V_2020_4, {"CPU", "GPU"}},
{"Elu", V_2023_0, {"VPUX"}},
{"Einsum", V_2023_0, {"CPU", "GPU"}},
// {"Einsum", V_2023_0, {"CPU", "GPU"}},
{"Equal", V_2020_4, {"CPU", "GPU"}},
{"Equal", V_2023_0, {"VPUX"}}, // Added for whisper decoder model.
{"Erf", V_2020_4, {"CPU", "GPU"}},
Expand Down
1 change: 1 addition & 0 deletions onnxruntime/core/providers/openvino/ov_versions/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ bool IsOpSupportedOnlyInModel(std::string name) {
"Concat",
"ConstantOfShape",
"Dropout",
"Einsum",
"Expand",
"EyeLike",
"Exp",
Expand Down
4 changes: 2 additions & 2 deletions onnxruntime/test/providers/cpu/math/einsum_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST(Einsum, ExplicitEinsumAsIdentity_1D_input) {
test.AddAttribute<std::string>("equation", "i->i");
test.AddInput<float>("x", {5}, {0.9f, 2.5f, 2.3f, 1.5f, -4.5f});
test.AddOutput<float>("y", {5}, {0.9f, 2.5f, 2.3f, 1.5f, -4.5f});
test.Run();
test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kOpenVINOExecutionProvider});
}

// Implicit
Expand All @@ -31,7 +31,7 @@ TEST(Einsum, ImplicitEinsumAsIdentity_1D_input) {
test.AddAttribute<std::string>("equation", "i");
test.AddInput<float>("x", {5}, {0.9f, 2.5f, 2.3f, 1.5f, -4.5f});
test.AddOutput<float>("y", {5}, {0.9f, 2.5f, 2.3f, 1.5f, -4.5f});
test.Run();
test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kOpenVINOExecutionProvider});
}

// Theme: Transpose/Permutation
Expand Down

0 comments on commit d8972b6

Please sign in to comment.