From 898b55cd6fcc6ca53b20d004b45d1c628024a6cf Mon Sep 17 00:00:00 2001 From: "Raasz, Pawel" Date: Thu, 6 Jun 2024 10:01:06 +0000 Subject: [PATCH] Add f4e2m1 to Java API --- modules/java_api/src/main/cpp/jni_common.hpp | 3 ++- .../java_api/src/main/java/org/intel/openvino/ElementType.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/java_api/src/main/cpp/jni_common.hpp b/modules/java_api/src/main/cpp/jni_common.hpp index ebc69e176..2c16e0fcb 100644 --- a/modules/java_api/src/main/cpp/jni_common.hpp +++ b/modules/java_api/src/main/cpp/jni_common.hpp @@ -260,7 +260,8 @@ static const ov::element::Type_t& get_ov_type(int type) ov::element::Type_t::nf4, ov::element::Type_t::f8e4m3, ov::element::Type_t::f8e5m2, - ov::element::Type_t::string + ov::element::Type_t::string, + ov::element::Type_t::f4e2m1 }; return java_type_to_ov_type.at(type); diff --git a/modules/java_api/src/main/java/org/intel/openvino/ElementType.java b/modules/java_api/src/main/java/org/intel/openvino/ElementType.java index f6dc3b388..9d286b1f0 100644 --- a/modules/java_api/src/main/java/org/intel/openvino/ElementType.java +++ b/modules/java_api/src/main/java/org/intel/openvino/ElementType.java @@ -31,7 +31,8 @@ public enum ElementType { nf4(21), f8e4m3(22), f8e5m2(23), - string(24); + string(24), + f8e5m2(25); private int value; private static Map map = new HashMap();