openvino/samples/python
Mikhail Nosov 72fe6082ea
[Preprocess] InputTensorInfo::set_from implementation (#10839)
* InputTensorInfo::from implementation

If user's application already has `ov::runtime::Tensor` object created,
it will be possible to reuse basic characteristics for input (shape, precision) from tensor using InputTensorInfo::from method

* Rename 'from' to 'set_from' as  in Python 'from' keyword is used for import modules
Python bindings: from ov.Tensor and from numpy array

* Style fix (quotes)

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Fix code style

* Use set_from in hello_classification CPP sample

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-03-14 18:02:51 +03:00
..
classification_sample_async Docs: Changed OpenVINO Runtime User Guide integration (#10187) 2022-03-02 20:07:52 +03:00
hello_classification [Preprocess] InputTensorInfo::set_from implementation (#10839) 2022-03-14 18:02:51 +03:00
hello_query_device Config api docs (#10563) 2022-02-22 14:32:57 +03:00
hello_reshape_ssd Docs: Changed OpenVINO Runtime User Guide integration (#10187) 2022-03-02 20:07:52 +03:00
model_creation_sample Docs: Changed OpenVINO Runtime User Guide integration (#10187) 2022-03-02 20:07:52 +03:00
speech_sample Fix `-layout` option (#10648) 2022-03-03 12:12:22 +03:00
requirements.txt [Python API] Move samples and docs to the new directory (#7851) 2021-10-14 14:49:35 +03:00
setup.cfg [Python API] Move samples and docs to the new directory (#7851) 2021-10-14 14:49:35 +03:00