rework auto test cases (#19862)
* initial commit Signed-off-by: fishbell <bell.song@intel.com> * clean up Signed-off-by: fishbell <bell.song@intel.com> * fix windows build failure Signed-off-by: fishbell <bell.song@intel.com> * enable auto func tests Signed-off-by: fishbell <bell.song@intel.com> * enable auto_func_test to ci Signed-off-by: fishbell <bell.song@intel.com> * some clean up in gpu case Signed-off-by: fishbell <bell.song@intel.com> * clang Signed-off-by: fishbell <bell.song@intel.com> * fix build warning Signed-off-by: fishbell <bell.song@intel.com> * enable new tests Signed-off-by: fishbell <bell.song@intel.com> * fix build warning Signed-off-by: fishbell <bell.song@intel.com> * enable consistency test Signed-off-by: fishbell <bell.song@intel.com> * try fix build error on manylinux Signed-off-by: fishbell <bell.song@intel.com> * enable cpplint Signed-off-by: fishbell <bell.song@intel.com> * enable clang-format Signed-off-by: fishbell <bell.song@intel.com> enable some tests Signed-off-by: fishbell <bell.song@intel.com> * fix typo Signed-off-by: fishbell <bell.song@intel.com> * clang for unit tests Signed-off-by: fishbell <bell.song@intel.com> * fix merge conflict Signed-off-by: fishbell <bell.song@intel.com> --------- Signed-off-by: fishbell <bell.song@intel.com>
This commit is contained in:
1 parent
7e7b6482aa
commit
ad41d0f52f
143 files changed
+5068
-3763
No files matched your search
@@ -86,7 +86,9 @@ void SyncInferRequest::set_tensors_to_another_request(ov::SoPtr<ov::IAsyncInferR
|
||||
auto tensor = get_tensor(it);
|
||||
OPENVINO_ASSERT(tensor != nullptr, "The tensor is empty!");
|
||||
auto type = tensor->get_element_type();
|
||||
if (req->get_tensor(it)->data(type) != tensor->data(type)) {
|
||||
bool is_remote = std::dynamic_pointer_cast<ov::IRemoteTensor>(tensor._ptr) ||
|
||||
std::dynamic_pointer_cast<ov::IRemoteTensor>(req->get_tensor(it)._ptr);
|
||||
if (is_remote || req->get_tensor(it)->data(type) != tensor->data(type)) {
|
||||
req->set_tensor(it, tensor);
|
||||
}
|
||||
}
|
||||
@@ -95,7 +97,9 @@ void SyncInferRequest::set_tensors_to_another_request(ov::SoPtr<ov::IAsyncInferR
|
||||
auto tensor = get_tensor(it);
|
||||
OPENVINO_ASSERT(tensor != nullptr, "The tensor is empty!");
|
||||
auto type = tensor->get_element_type();
|
||||
if (req->get_tensor(it)->data(type) != tensor->data(type)) {
|
||||
bool is_remote = std::dynamic_pointer_cast<ov::IRemoteTensor>(tensor._ptr) ||
|
||||
std::dynamic_pointer_cast<ov::IRemoteTensor>(req->get_tensor(it)._ptr);
|
||||
if (is_remote || req->get_tensor(it)->data(type) != tensor->data(type)) {
|
||||
req->set_tensor(it, tensor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user