forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyOV] String type support (openvinotoolkit#21532)
* WIP working Tensor with automatic casting * Update infer functions and minor fixes * Impl for multi-dim arrays with fixes for strides * Fix strides for S kind and refactor tests * Added str_data and bytes_data to Tensor, cleaning up the solution * Add test of warning while using data property * Allow lists as inputs for single Tensors, refactor infer code to return OVDict with decoded strings, some refactoring, tests * Replace string with another invalid input * Added bytes_str and string_str properties, clean up common part of bindings, added test cases * Improve string element type to be created from numpy/python counterparts, refactor of common code, small improvements * Add tests for types * Remove print * Small fix for tensors from pointers * Small fix for asserts * Add tests for data dispatcher * Fix comments * fix tests * Fix edge-case for scalar-like values and unlock tests for data dispatcher
- Loading branch information
Jan Iwaszkiewicz
authored
Dec 15, 2023
1 parent
7a31163
commit eff9ba7
Showing
14 changed files
with
829 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.