Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA_API] Add f4e2m1 to Java API #921

Merged
merged 4 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/java_api/src/main/cpp/jni_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public enum ElementType {
nf4(21),
f8e4m3(22),
f8e5m2(23),
string(24);
string(24),
f4e2m1(25);

private int value;
private static Map<Integer, ElementType> map = new HashMap<Integer, ElementType>();
Expand Down
Loading