Enable handle support for new hardware (#334)

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
This commit is contained in:
Sven 2022-03-29 18:12:28 +08:00 committed by GitHub
parent d1b57e8eca
commit 18ce7b45fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -187,7 +187,6 @@ bool TensorImpl::Init() {
PackTensorDtype(spec_, &attr.dtype); PackTensorDtype(spec_, &attr.dtype);
#ifndef VSI_40BIT_VA_SUPPORT
if ((spec_.attr_ & TensorAttribute::INPUT) || if ((spec_.attr_ & TensorAttribute::INPUT) ||
(spec_.attr_ & TensorAttribute::OUTPUT)) { (spec_.attr_ & TensorAttribute::OUTPUT)) {
#ifdef VX_CREATE_TENSOR_SUPPORT_PHYSICAL #ifdef VX_CREATE_TENSOR_SUPPORT_PHYSICAL
@ -211,7 +210,6 @@ bool TensorImpl::Init() {
#endif #endif
} else } else
#endif
{ {
id_ = vsi_nn_AddTensor(graph_->graph(), VSI_NN_TENSOR_ID_AUTO, &attr, id_ = vsi_nn_AddTensor(graph_->graph(), VSI_NN_TENSOR_ID_AUTO, &attr,
nullptr); nullptr);