• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2019-2021 Huawei Technologies Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef MINDSPORE_LITE_SRC_COMMON_LOG_ADAPTER_H_
17 #define MINDSPORE_LITE_SRC_COMMON_LOG_ADAPTER_H_
18 
19 #ifdef USE_GLOG
20 #include "utils/log_adapter.h"
21 #else
22 #include "src/common/log.h"
23 #endif  // USE_GLOG
24 
25 namespace mindspore {
26 const char *const unsupport_string_tensor_log =
27   "This mindspore-lite library does not support string tensors. Set environment variable MSLITE_ENABLE_STRING_KERNEL "
28   "to on to "
29   "recompile it.";
30 const char *const unsupport_controlflow_tensorlist_log =
31   "This mindspore-lite library does not support controlflow and tensorlist op. Set environment variable "
32   "MSLITE_ENABLE_CONTROLFLOW to on to recompile it.";
33 const char *const unsupport_auto_parallel_log =
34   "The mindspore-lite library does not support auto parallel. Set environment variable MSLITE_ENABLE_AUTO_PARALLEL to "
35   "on to "
36   "recompile it.";
37 const char *const unsupport_weight_decode_log =
38   "The mindspore-lite library does not support weight decode. Set environment variable MSLITE_ENABLE_WEIGHT_DECODE to "
39   "on to "
40   "recompile it.";
41 const char *const unsupport_custom_kernel_register_log =
42   "The mindspore-lite library does not support custom kernel register. Set environment variable "
43   "MSLITE_ENABLE_CUSTOM_KERNEL to on to "
44   "recompile it.";
45 const char *const unsupport_delegate_log =
46   "The mindspore-lite library does not support delegate. Set environment variable "
47   "MSLITE_ENABLE_DELEGATE to on to "
48   "recompile it.";
49 const char *const unsupport_v0_log =
50   "The mindspore-lite library does not support v0 ms. Set environment variable "
51   "MSLITE_ENABLE_V0 to on to "
52   "recompile it. Or use a new converter tool to re transform the model";
53 const char *const unsupport_fp16_log =
54   "The mindspore-lite library does not support fp16. Set environment variable "
55   "MSLITE_ENABLE_FP16 to on to "
56   "recompile it.";
57 }  // namespace mindspore
58 
59 #endif  // MINDSPORE_LITE_SRC_COMMON_LOG_ADAPTER_H_
60