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

[C API] fix element type mismatch issue #24608

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 12 additions & 0 deletions src/bindings/c/docs/api_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,14 @@ typedef enum {

U1, //!< binary element type

U2, //!< u2 element type

U3, //!< u3 element type

U4, //!< u4 element type

U6, //!< u6 element type

U8, //!< u8 element type

U16, //!< u16 element type
Expand All @@ -193,6 +199,12 @@ typedef enum {

NF4, //!< nf4 element type

F8E4M3, //!< f8e4m3 element type

F8E5M3, //!< f8e5m2 element type

STRING, //!< string element type

} ov_element_type_e;
```

Expand Down
7 changes: 6 additions & 1 deletion src/bindings/c/include/openvino/c/ov_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ typedef enum {
/**
* @enum ov_element_type_e
* @ingroup ov_base_c_api
* @brief This enum contains codes for element type.
* @brief This enum contains codes for element type, which is aligned with ov::element::Type_t in
* src/core/include/openvino/core/type/element_type.hpp
*/
typedef enum {
UNDEFINED = 0U, //!< Undefined element type
Expand All @@ -181,14 +182,18 @@ typedef enum {
I32, //!< i32 element type
I64, //!< i64 element type
U1, //!< binary element type
U2, //!< u2 element type
U3, //!< u3 element type
U4, //!< u4 element type
U6, //!< u6 element type
U8, //!< u8 element type
U16, //!< u16 element type
U32, //!< u32 element type
U64, //!< u64 element type
NF4, //!< nf4 element type
F8E4M3, //!< f8e4m3 element type
F8E5M3, //!< f8e5m2 element type
STRING, //!< string element type
} ov_element_type_e;

/**
Expand Down
Loading