mirror of
https://gitee.com/openharmony/xts_hats
synced 2025-02-23 20:01:08 +00:00
修改目录路径
Signed-off-by: tangshihua <tangshihua@huawei.com>
This commit is contained in:
parent
65a194ac1b
commit
32859c70df
19
ai/BUILD.gn
Normal file
19
ai/BUILD.gn
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright (C) 2021-2022 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import("//build/ohos_var.gni")
|
||||
group("hatsaitest") {
|
||||
testonly = true
|
||||
if (is_standard_system) {
|
||||
deps = [ "nnrt:HatsHdfNnrtTest" ]
|
||||
}
|
||||
}
|
@ -161,6 +161,7 @@ V1_0::IOTensor HDICommon::CreateInputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &dev
|
||||
|
||||
V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0};
|
||||
auto ret = device->AllocateBuffer(length, buffer);
|
||||
|
||||
if (ret != HDF_SUCCESS || buffer.fd == NNRT_INVALID_FD) {
|
||||
printf("[NNRtTest] [CreateInputIOTensor] allocate buffer error. ret: %d, fd: %d\n", ret, buffer.fd);
|
||||
}
|
||||
@ -188,6 +189,7 @@ V1_0::IOTensor HDICommon::CreateOutputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &de
|
||||
|
||||
V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0};
|
||||
int ret = device->AllocateBuffer(length, buffer);
|
||||
|
||||
if (ret != HDF_SUCCESS || buffer.fd == NNRT_INVALID_FD) {
|
||||
printf("[NNRtTest] Allocate buffer error. ErrorCode: %d, fd: %d", ret, buffer.fd);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user