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 #undef LOG_TAG
21 #define LOG_TAG "IAipCoreManagerImpl"
22
23 namespace OHOS {
24 namespace DataIntelligence {
InitTextModel(const ModelConfigData & config)25 int32_t IAipCoreManagerImpl::InitTextModel(const ModelConfigData &config)
26 {
27 return DEVICE_EXCEPTION;
28 }
29
InitImageModel(const ModelConfigData & config)30 int32_t IAipCoreManagerImpl::InitImageModel(const ModelConfigData &config)
31 {
32 return DEVICE_EXCEPTION;
33 }
34
LoadTextModel()35 int32_t IAipCoreManagerImpl::LoadTextModel()
36 {
37 return DEVICE_EXCEPTION;
38 }
39
ReleaseTextModel()40 int32_t IAipCoreManagerImpl::ReleaseTextModel()
41 {
42 return DEVICE_EXCEPTION;
43 }
44
GetTextEmbedding(std::string file,std::vector<float> & results)45 int32_t IAipCoreManagerImpl::GetTextEmbedding(std::string file, std::vector<float> &results)
46 {
47 return DEVICE_EXCEPTION;
48 }
49
GetTextEmbedding(const std::vector<std::string> & files,std::vector<std::vector<float>> & results)50 int32_t IAipCoreManagerImpl::GetTextEmbedding(const std::vector<std::string> &files,
51 std::vector<std::vector<float>> &results)
52 {
53 return DEVICE_EXCEPTION;
54 }
55
LoadImageModel()56 int32_t IAipCoreManagerImpl::LoadImageModel()
57 {
58 return DEVICE_EXCEPTION;
59 }
60
ReleaseImageModel()61 int32_t IAipCoreManagerImpl::ReleaseImageModel()
62 {
63 return DEVICE_EXCEPTION;
64 }
65
GetImageEmbedding(std::string uri,std::vector<float> & results)66 int32_t IAipCoreManagerImpl::GetImageEmbedding(std::string uri, std::vector<float> &results)
67 {
68 return DEVICE_EXCEPTION;
69 }
70
SplitText(std::string text,int32_t size,float overlap,std::vector<std::string> & results)71 int32_t IAipCoreManagerImpl::SplitText(std::string text, int32_t size, float overlap,
72 std::vector<std::string> &results)
73 {
74 return DEVICE_EXCEPTION;
75 }
76 } // namespace DataIntelligence
77 } // namespace OHOS
78