Skip to content

Commit

Permalink
Support string dtype for OV backend
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-churkin committed Mar 26, 2024
1 parent b7ba5ad commit 01e13dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nncf/common/graph/layer_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class Dtype(Enum):
FLOAT = "float"
INTEGER = "int"
STRING = "string"


class BaseLayerAttributes(ABC):
Expand Down
1 change: 1 addition & 0 deletions nncf/openvino/graph/nncf_graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def convert_to_nncf_dtype(ov_dtype: str) -> Dtype:
"u32": "int",
"u64": "int",
"boolean": "int",
"string": "string",
}
if ov_dtype not in conversion_map:
raise NotImplementedError(f"NNCF is not yet supported OpenVINO data type: {ov_dtype}.")
Expand Down

0 comments on commit 01e13dc

Please sign in to comment.