1 /*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License a
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "i_aip_core_manager_impl.h"
17
18 #include "aip_napi_error.h"
19
20 namespace OHOS {
21 namespace DataIntelligence {
InitTextModel(const ModelConfigData & config)22 int32_t IAipCoreManagerImpl::InitTextModel(const ModelConfigData &config)
23 {
24 return DEVICE_EXCEPTION;
25 }
26
InitImageModel(const ModelConfigData & config)27 int32_t IAipCoreManagerImpl::InitImageModel(const ModelConfigData &config)
28 {
29 return DEVICE_EXCEPTION;
30 }
31
LoadTextModel()32 int32_t IAipCoreManagerImpl::LoadTextModel()
33 {
34 return DEVICE_EXCEPTION;
35 }
36
ReleaseTextModel()37 int32_t IAipCoreManagerImpl::ReleaseTextModel()
38 {
39 return DEVICE_EXCEPTION;
40 }
41
GetTextEmbedding(std::string file,std::vector<float> & results)42 int32_t IAipCoreManagerImpl::GetTextEmbedding(std::string file, std::vector<float> &results)
43 {
44 return DEVICE_EXCEPTION;
45 }
46
GetTextEmbedding(const std::vector<std::string> & files,std::vector<std::vector<float>> & results)47 int32_t IAipCoreManagerImpl::GetTextEmbedding(const std::vector<std::string> &files,
48 std::vector<std::vector<float>> &results)
49 {
50 return DEVICE_EXCEPTION;
51 }
52
LoadImageModel()53 int32_t IAipCoreManagerImpl::LoadImageModel()
54 {
55 return DEVICE_EXCEPTION;
56 }
57
ReleaseImageModel()58 int32_t IAipCoreManagerImpl::ReleaseImageModel()
59 {
60 return DEVICE_EXCEPTION;
61 }
62
GetImageEmbedding(std::string uri,std::vector<float> & results)63 int32_t IAipCoreManagerImpl::GetImageEmbedding(std::string uri, std::vector<float> &results)
64 {
65 return DEVICE_EXCEPTION;
66 }
67
SplitText(std::string text,int32_t size,float overlap,std::vector<std::string> & results)68 int32_t IAipCoreManagerImpl::SplitText(std::string text, int32_t size, float overlap,
69 std::vector<std::string> &results)
70 {
71 return DEVICE_EXCEPTION;
72 }
73
CheckDeviceType()74 bool IAipCoreManagerImpl::CheckDeviceType()
75 {
76 return false;
77 }
78
79 } // namespace DataIntelligence
80 } // namespace OHOS
81