Skip to content

Commit

Permalink
[Python API] Replace deprecated NumPy type np.bool (openvinotoolkit#1…
Browse files Browse the repository at this point in the history
…2786)

Signed-off-by: Kazantsev, Roman <[email protected]>
  • Loading branch information
rkazants authored Aug 30, 2022
1 parent 756659b commit 98a23a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bindings/python/src/compatibility/ngraph/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
NodeInput = Union[Node, NumericData]

ngraph_to_numpy_types_map = [
(NgraphType.boolean, np.bool),
(NgraphType.boolean, bool),
(NgraphType.f16, np.float16),
(NgraphType.f32, np.float32),
(NgraphType.f64, np.float64),
Expand All @@ -38,7 +38,7 @@
]

ngraph_to_numpy_types_str_map = [
("boolean", np.bool),
("boolean", bool),
("f16", np.float16),
("f32", np.float32),
("f64", np.float64),
Expand Down
4 changes: 2 additions & 2 deletions src/bindings/python/src/openvino/runtime/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
NodeInput = Union[Node, NumericData]

openvino_to_numpy_types_map = [
(Type.boolean, np.bool),
(Type.boolean, bool),
(Type.f16, np.float16),
(Type.f32, np.float32),
(Type.f64, np.float64),
Expand All @@ -38,7 +38,7 @@
]

openvino_to_numpy_types_str_map = [
("boolean", np.bool),
("boolean", bool),
("f16", np.float16),
("f32", np.float32),
("f64", np.float64),
Expand Down

0 comments on commit 98a23a5

Please sign in to comment.